Installing Sharepoint Templates with a Simple Script

Here’s a simple batch file to be used with STSADM, make sure that the first line is changed to the same folder where all the templates have been unzipped. Also, make sure to put STSADM.exe in that folder as well, or just modify the script to point to the right locations.

cd c:\templates\

SET /P Template=Template File Name (Without .WSP):

stsadm -o addsolution -filename %TEMPLATE%.wsp

stsadm -o deploysolution -name %TEMPLATE%.wsp -allowgacdeployment -immediate

pause