Monday, July 22, 2013

SharePoint 2007 Command Line Deploy

These are the steps for deploying a WSP solution to SharePoint 2007 using the STSADM command line tool.
For Redeployments If the soltution has been deployed in the past, it will need to be retracted before it can be deployed again. Follow these steps before the deployment.
stsadm -o deactivatefeature -name SolutionName -url http://server
stsadm -o retractsolution -name SolutionName.wsp -immediate -url http://server
stsadm -o execadmsvcjobs
stsadm -o deletesolution -name SolutionName.wsp
Deploying the Solution For new deployments (or redeployments after retracting the solution), follow these steps.
stsadm -o addsolution -filename SolutionName.wsp
stsadm -o deploysolution -name SolutionName.wsp -allowgacdeployment -immediate -url http://server
stsadm -o execadmsvcjobs
stsadm -o activatefeature -name SolutionName -url http://server
Please note: Some commands (such as execadmsvcjobs or activatefeature) may take longer than others to complete.

No comments:

Post a Comment