Sunday, September 28, 2008

How to install Sharepoint 40 application templates - Installation scripts

Here are a few simple steps to install Microsoft Sharepoint fantastic 40 application templates in a jiffy.


Installation Guidelines: (follow them in the order specified)
a) Install all the 40 application templates in your local hard-drive, lets say you install them in C:/MOSSTemplates directory
Note: Before installtion, please make sure your Windows SharePoint Services Administration service is running.

b) In order to install the set of 20  application templates having .stp as extension, create a batch file namely: STPInstallation.bat, create it in the same directory, where you have installed the application templates. 
Copy the following code inside this batch file:

for %%f in (*.stp) do "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o addtemplate -filename %%f -title %%f

Run this batch file and your 20 application templates are installed without any effort.

c) In order to install the next set of 20  application templates having .wsp as extension, 
i) Create a batch file namely:  AddGACSolution.bat in the same directory
Copy the following code inside this batch file:

for %%f in (*.wsp) do "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o addsolution -filename %%f

Run this batch file.

ii) Create another batch file namely:  GacDeployment.bat in the same directory
Copy the following code inside this batch file:

for %%f in (*.wsp) do "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o deploysolution -allowgacdeployment -immediate -name %%f

Run this batch file to deploy the solution in the Global Assembly Cache and do an iisreset thereafter

d) You 're done installing the fantastic 40 application templates provided by sharepoint. Finally you get to see them all, when you create sites in sharepoint

If you find this post helpful, spread this to all the Sharepoint practioners you know...
In case you facwe any issue, post a comment on this blog and i will try to solve your issue...