SharePoint 2010 - Deploy Script
This script allows you to to deploy to your on-premise SharePoint farm or local VM with relative ease. Unless, you want to use powershell.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | @ echo off SET WSP=SolutionName.wsp SET URL=http: //SharePointServer @ set PATH=C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN;%PATH% @ echo on @ echo . cls @ echo . @ echo Begin deploying %WSP% @ echo . @ echo display solution stsadm -o displaysolution -name %WSP% @ echo schedule the retraction of the solution stsadm -o retractsolution -name %WSP% -immediate -url %URL% @ echo execute the retraction timer job immediately stsadm -o execadmsvcjobs @ echo delete the solution from the solution store stsadm -o deletesolution -name %WSP% @ echo add the solution to the solution store stsadm -o addsolution -filename DeploymentFiles\%WSP% @ echo schedule the deployment of the solution stsadm -o deploysolution -name %WSP% -immediate -allowgacdeployment -force -url %URL% @ echo execute the deployment timer job immediatelystsadm -o execadmsvcjobs @ echo display solutionstsadm -o displaysolution -name %WSP% @ echo . @ echo End deploying %WSP% pause |
Comments