Tuesday, 2 August 2011

Steps to install wsp files By using STSADM command in sharepoint 2010

Steps to install wsp files By using STSADM command:
--------------------------------------------------
First we have to run this command in CMD :

cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN

1. Add the solution
stsadm -o addsolution -filename {WSPFILENAME}   Ex :  stsadm -o addsolution -filename


2. Deploy the solution
stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL}
                  OR

Go to central admin ->system settings -> Manage Farm solutions ->click on the webpart and deploy  it.


3. Install the feature
stsadm -o installfeature -filename {FeatureFolder}\feature.xml

4. Activate the feature
stsadm -o activatefeature -id {FEATUREID} -url {SITEURL} -force

(Or)

Go to the particular site site actions ->site settings ->site collection admin -> site collection features ->activate the feature

5. Deactive the feature
Stsadm.exe -o deactivatefeature -filename “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ViewFormPagesLockDown\feature.xml” -ur 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
reference

C:>stsadm.exe -o deploysolution -name MossSolution.wsp -immediate -allowgacdeployment

No comments:

Post a Comment