Quickly deploy Application solutions in your WSS/MOSS environment

Tired of always being asked to install all those solutions from the Microsoft Download application Templates Pack onto your WSS or MOSS box?


Here’s how I do it:


First off all, if you have not yet installed the application core, you need to deploy this one first. For this I have a batch file with the following instructions



stsadm -o addsolution -filename ApplicationTemplateCore.wsp
stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment -immediate
stsadm -o copyappbincontent
 


For deploying all the solutions quickly, I use 2 batch files:




  • Deploysolution.bat



stsadm -o addsolution -filename %1
stsadm -o deploysolution -name %1 -allowgacdeployment -immediate




  • Deploy.bat



for /F %%i in (‘dir /b *.wsp’) do deploysolution.bat %%i


Now put these batch files in the folder containing all your solution files (.wsp) files and run deploy.bat. That’s it [:D]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>