Sunday, October 18, 2009

Application Templates installation script

Scenario:
I am sure most of us know about "Fantastic 40 templates" or "Windows SharePoint Services 3.0 Application Templates" available for download here

Now In my training I always recommends students to get started with these templates but they usually skip it just because of lack of scripts to install the templates on server.

Solution:
Here's the 2 scripts , I used to quickly setup Application Templates.

1. Download the templates and extract them in C:\apps
2. Run the AddSolution.bat script
3. Run the DeploySolution.bat script
4. Go to http:\\localhost > Site Action > Site Settings > Site Template Gallery
5. Upload > Multiple Upload
6. Now upload all the files with .STP extensions.

That's it. Now you can use all the templates.

Add Solution Script:


stsadm -o addsolution -filename C:\apps\ApplicationTemplateCore.wsp

stsadm -o addsolution -filename C:\apps\AbsenceVacationSchedule.wsp

stsadm -o addsolution -filename C:\apps\BudgetingTrackingMultipleProjects.wsp

stsadm -o addsolution -filename C:\apps\BugDatabase.wsp

stsadm -o addsolution -filename C:\apps\CallCenter.wsp

stsadm -o addsolution -filename C:\apps\ChangeRequest.wsp

stsadm -o addsolution -filename C:\apps\ComplianceProcessSupport.wsp

stsadm -o addsolution -filename C:\apps\ContactsManagement.wsp

stsadm -o addsolution -filename C:\apps\DocumentLibraryReview.wsp

stsadm -o addsolution -filename C:\apps\EventPlanning.wsp

stsadm -o addsolution -filename C:\apps\ExpenseReimbursementApproval.wsp

stsadm -o addsolution -filename C:\apps\HelpDesk.wsp

stsadm -o addsolution -filename C:\apps\InventoryTracking.wsp

stsadm -o addsolution -filename C:\apps\ITTeamWorkspace.wsp

stsadm -o addsolution -filename C:\apps\JobRequisition.wsp

stsadm -o addsolution -filename C:\apps\KnowledgeBase.wsp

stsadm -o addsolution -filename C:\apps\LendingLibrary.wsp

stsadm -o addsolution -filename C:\apps\PhysicalAssetTracking.wsp

stsadm -o addsolution -filename C:\apps\ProjectTrackingWorkspace.wsp

stsadm -o addsolution -filename C:\apps\RoomEquipmentReservations.wsp

stsadm -o addsolution -filename C:\apps\SalesLeadPipeline.wsp
Deploy Solution Script:
stsadm -o deploysolution -name ApplicationTemplateCore.wsp -immediate -allowgacdeployment 

stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name BugDatabase.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name CallCenter.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name ChangeRequest.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name ComplianceProcessSupport.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name ContactsManagement.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name DocumentLibraryReview.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name EventPlanning.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name HelpDesk.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name InventoryTracking.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name ITTeamWorkspace.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name JobRequisition.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name KnowledgeBase.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name LendingLibrary.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name PhysicalAssetTracking.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name RoomEquipmentReservations.wsp -immediate -allowgacdeployment

stsadm -o deploysolution -name SalesLeadPipeline.wsp -immediate -allowgacdeployment
Note:
1. This script assumes that path to STSADM is already set.
2. In case you dont want to install all of them, deleted the ones you dont want from C:\Apps folder before you run the scripts.

0 comments: