Friday, July 22, 2011

STSADM commands to install WSP file

Everyone who works with MS SharePoint need from time to time work with WSP files. Here are some useful STSADM commands.
The location of STSADM depend on your installation, but usually you can find it here: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
-----------------------------------------
1. Add the solution
stsadm -o addsolution -filename {WSPFILENAME}
2. Deploy the solution
stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL}
3. Install the feature
stsadm -o installfeature -filename {FeatureFolder}\feature.xml
4. Activate the feature
stsadm -o activatefeature -id {FEATUREID} -url {SITEURL} -force
5. Deactive the feature
Stsadm.exe -o deactivatefeature -filename “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\{YourFeatureName}\feature.xml” -url http://servername/
6.Uninstall the feature
stsadm -o uninstallfeature -filename
7.Retract Solution
stsadm -o retractsolution -name [-url] [-allcontenturls] [-time] [-immediate]
8.Delete Solution
stsadm -o deletesolution -name
9.Upgrade Solution
stsadm -o upgradesolution -name [solutionName] -filename [fullPathToTheSolution] -immediate -allowgacdeployment


-----------------------------------------
Source:
http://littletalk.wordpress.com/2008/12/16/steps-to-install-wsp-file-in-stsadm/
For more information review:
http://technet.microsoft.com/en-us/library/cc262643(v=office.12)

No comments:

Post a Comment