Microsoft Technology, .Net, BizTalk, Sharepoint & etc.

Liedong(Ken) Zheng, Senior SharePoint Developer at SIMPLOT

Installation Guide for SharePoint Application Templates

Posted by ken zheng on March 7, 2008

First download tempaltes from microsoft, run the exe and extract data to your local disk (I used c:\templates).

Application Template Core Installation Walkthrough 

 Before installing any Application Template, you must first install the Application Template Core (download link below) solution.

  • Launch the command prompt and run: cd C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
  • then run: stsadm -o addsolution -filename c:\templates\applicationtemplatecore.wsp
  • run: stsadm -o deploysolution -name applicationtemplatecore.wsp -allowgacdeployment -immediate
  • last run: stsadm -o copyappbincontent

Application Template Install Walkthrough

Copy the folllwing cod to a bat file, then run the bat file which can help you install all the tempaltes

@echo off
CD C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
c:

stsadm -o addsolution -filename c:\templates\AbsenceVacationSchedule.wsp
stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\BudgetingTrackingMultipleProjects.wsp
stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\BugDatabase.wsp
stsadm -o deploysolution -name BugDatabase.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\CallCenter.wsp
stsadm -o deploysolution -name CallCenter.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\ChangeRequest.wsp
stsadm -o deploysolution -name ChangeRequest.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\ComplianceProcessSupport.wsp
stsadm -o deploysolution -name ComplianceProcessSupport.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\ContactsManagement.wsp
stsadm -o deploysolution -name ContactsManagement.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\EventPlanning.wsp
stsadm -o deploysolution -name EventPlanning.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\ExpenseReimbursementApproval.wsp
stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\HelpDesk.wsp
stsadm -o deploysolution -name HelpDesk.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\InventoryTracking.wsp
stsadm -o deploysolution -name InventoryTracking.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\ITTeamWorkspace.wsp
stsadm -o deploysolution -name ITTeamWorkspace.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\LendingLibrary.wsp
stsadm -o deploysolution -name LendingLibrary.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\PhysicalAssetTracking.wsp
stsadm -o deploysolution -name PhysicalAssetTracking.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\ProjectTrackingWorkspace.wsp
stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\RoomEquipmentReservations.wsp
stsadm -o deploysolution -name RoomEquipmentReservations.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\SalesLeadPipeline.wsp
stsadm -o deploysolution -name SalesLeadPipeline.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\ApplicationTemplateCore.wsp
stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment -immediate
stsadm -o addsolution -filename c:\templates\KnowledgeBase.wsp
stsadm -o deploysolution -name KnowledgeBase.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\JobRequisition.wsp
stsadm -o deploysolution -name JobRequisition.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\DocumentLibraryReview.wsp
stsadm -o deploysolution -name DocumentLibraryReview.wsp -allowgacdeployment -immediate

stsadm -o addsolution -filename c:\templates\PrivateFieldPackage.wsp
stsadm -o deploysolution -name PrivateFieldPackage.wsp -allowgacdeployment -immediate

 Once you have deployed all application templates you would like, restart IIS
iisreset

How To Implement Application Templates

  1. From the Site Actions drop-down menu in the top right, select Site Settings.
  2. Under the Site Administration section, select Sites and Workspaces.
  3. Select the Create button to create a new site using a site template.
  4. Fill in all appropriate information for the new site and in the Template Selection section, select the Application Templates tab, select the template to use for this site and click Create.

That should do the trick. A new site has been created. Now go ahead and play around with it.

Application Template Uninstall Walkthrough

This installation was simple. The uninstallation is just as straight forward.

  1. First and foremost you need to retract a solution (not allow SharePoint sites from using it)

    stsadm –o retractsolution –name ApplicationTemplateCore

  2. To remove a solution from the server

    stsadm –o deletesolution –name ApplicationTemplateCore

  3. The Application Template is now unavailable to SharePoint sites and the solution has been removed from the solution store.

11 Responses to “Installation Guide for SharePoint Application Templates”

  1. mukesh said

    when i installed templates then i found error massage access denied

  2. liedong said

    You need to be site administrator privilage

  3. V.Venkat said

    Hi,

    This article is very useful and with this help of I have deployed the Templates.

    But I have some issue whiles adding the templates.
    With the help of commands I have installed the templates but still showing deploying inspite of restarting IIS and also I have restarted the server, but still it is in deploying mode.
    Also when I am implementing the templates, I am not getting the application templates in templates selection. I am able to see other tempales selections loke blank site, team site, blog etc.

    Please help to solve this issue.

    Regards,

    V.Venkat
    Techgyan

  4. techdhaan said

    I have seen the same access denied error. I blogged about the solution here
    http://techdhaan.wordpress.com/2008/05/18/stsadm-addsolution-and-deploysolution-object-reference-not-set-to-an-instance-of-the-object-error/

  5. ehaze said

    bat file creation:

    open notepad and paste the code above into it. save the file as blah.bat. once you have saved the file you can double click it and all the templates will install.

  6. AJ said

    You’re my hero…. I’ve spent all morning trying to follow instructions by MS that I haven’t been able to get to work, however your blog here made it so strait forward.

    Thanks for taking the time to jot this down.

    I’ll buy you a beer should you ever find yourself in Portland OR.

  7. Ereyns said

    Followed instructions but solution status always says “deploying” and does not change .

  8. fzas said

    Thank you for the most complete instructions I have found on the web. It was a lifesaver.

  9. Bas said

    hi Ken,

    Thank you for sharing your instructions with us.

    The way you explain it turns out to be really helpfull.

    Regards,
    Bas
    Helicon Education, Application management, the Netherlands (Europe)

  10. IISMATT said

    Thanks for this also, here is one that includes a batch file to install all of the site templates “.stp” files to the farm as well…
    http://www.iismatt.com/IISMATT/post/2009/06/17/Installing-Windows-SharePoint-Services-Application-Template-Core-and-All-Templates.aspx

  11. Harvey said

    Your tips and instructions are dead on, and thanks for the script. Worked like a charm!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>