Friday, January 27, 2012

Install WSPs using STSADM- Sample batch file

set WSP_NAME=###WSPNAME##.wsp
cd E:\Builds\PreBuild

stsadm -o retractsolution -name %WSP_NAME% -immediate
stsadm -o execadmsvcjobs
stsadm -o deletesolution -name %WSP_NAME% -override
stsadm -o execadmsvcjobs
stsadm -o addsolution -filename %WSP_NAME%
stsadm -o execadmsvcjobs
stsadm -o deploysolution -name %WSP_NAME% -immediate -url ###URL### -allowgacdeployment -force
stsadm -o execadmsvcjobs



pause

No comments:

Post a Comment