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...

9 comments:

  1. Thanks a lot for your time-saving post! You made my day :-)

    ReplyDelete
  2. I agree with the other comment above, it was very cool of you to do this and post and I learned a bit too.

    ReplyDelete
  3. you can get Wow Power Leveling and wow gold wow power leveling|*|wow power leveling|*|http://www.superpowerleveling.com|*|gj52g

    ReplyDelete
  4. Extremely helpful! Thank you!

    ReplyDelete
  5. Thanks for sharing useful information. This is really a great work..

    ReplyDelete
  6. It works on 2010 as well is you change the "12" to "14" in all the commands. Stellar!

    ReplyDelete
  7. New features are always welcomed. I wonder if sharepoint electronic signature can become more effecient in terms of customer's experience, when it comes to automated signing of the document. -

    ReplyDelete