Add to My Yahoo! | Google Reader or Homepage | Add to Windows Live | Add to Windows Live Alerts

Wictor Wilén

Microsoft Certified Master (MCM) - SharePoint 2010 | Microsoft Most Valuable Professional (MVP) - SharePoint Server MVP | Author

Install script for the SharePoint Application Templates

Posted at 2008-02-12 12:08 by Wictor Wilén in SharePoint , Scripting with 1 comments.

The Application Templates for Windows SharePoint Services 3.0, also known as the Fab40, is a set of forty different templates that can be used within a SharePoint environment.

These templates are good to use as a starter when creating new SharePoint sites or custom solutions and I recommend that you install them into your test or development environment. But the download contains 40 different .wsp and .stp files which has to be installed one at a time; either using STSADM or using the web interface.

Why not using a script?

And here is one...

   1:  @SET STSADM="c:\program files\common files\microsoft shared\web server extensions\12\bin\stsadm"
   2:   
   3:  for %%f in (*.wsp) do %STSADM% -o addsolution -filename %%f
   4:   
   5:  for %%f in (*.wsp) do %STSADM% -o deploysolution -allowgacdeployment -immediate -name %%f
   6:   
   7:  for %%f in (*.stp) do %STSADM% -o addtemplate -filename %%f -title %%f
   8:   
   9:  pause
  10:   
  11:  IISRESET

Just create a .bat (or .cmd) file and copy the text from above and save the file.

Open up a command prompt and run the file and wait for the script to finish.

Tada...

image

Comments and trackbacks

#  Thanks by Ivan Versluis
Screenshot from websnpr Hey Wictor, The script helped me to quickly install the Fab40 on our development Sharepoint server.
Make a comment on this post:
Subject:  

Your name:  
Your Url:  
Note: submissions may have to be approved before being visible, so don't submit your comment multiple times.