Add the solution
stsadm -o addsolution -filename {path of wsp file}
Example:
stsadm -o addsolution -filename C:\MyTest.wsp
Deploy the solution
stsadm -o deploysolution -name {path of wsp file} -url {URL}
Example:
stsadm -o deploysolution -name MyTest.wsp -url http://URL
Retract solution:
stsadm.exe -o retractsolution -name {path of wsp file}.wsp –URL
Example:
stsadm.exe -o retractsolution -name MyTest.wsp.wsp –URL http://URL
Delete Solution
stsadm.exe -o deletesolution -name {path of wsp file}.wsp
Example:
stsadm.exe -o deletesolution -name MyTest.wsp.wsp
http://www.enjoysharepoint.com/Articles/Details/deploy-sharepoint-2010-solution-wsp-package-using-59.aspx
http://www.fewlines4biju.com/2011/05/deploy-wsp-file-in-sharepoint-2010.html
Deploy using managment shell
STEP 1
Add-SPSolution "C:\Projects\RFB\Deploys\SunInt.Hrda.Controls.wsp"
STEP 2
Install-SPSolution -Identity "SunInt.Hrda.Controls.wsp" -WebApplication http://vr-tl-dev-ap01:99 -GACDeployment -Force
stsadm -o addsolution -filename {path of wsp file}
Example:
stsadm -o addsolution -filename C:\MyTest.wsp
Deploy the solution
stsadm -o deploysolution -name {path of wsp file} -url {URL}
Example:
stsadm -o deploysolution -name MyTest.wsp -url http://URL
Retract solution:
stsadm.exe -o retractsolution -name {path of wsp file}.wsp –URL
Example:
stsadm.exe -o retractsolution -name MyTest.wsp.wsp –URL http://URL
Delete Solution
stsadm.exe -o deletesolution -name {path of wsp file}.wsp
Example:
stsadm.exe -o deletesolution -name MyTest.wsp.wsp
http://www.enjoysharepoint.com/Articles/Details/deploy-sharepoint-2010-solution-wsp-package-using-59.aspx
http://www.fewlines4biju.com/2011/05/deploy-wsp-file-in-sharepoint-2010.html
Deploy using managment shell
STEP 1
Add-SPSolution "C:\Projects\RFB\Deploys\SunInt.Hrda.Controls.wsp"
STEP 2
Install-SPSolution -Identity "SunInt.Hrda.Controls.wsp" -WebApplication http://vr-tl-dev-ap01:99 -GACDeployment -Force
Step1: Start Power Shell command prompt
Start->All Programs->MicrosoftSharepoint2010Products->open Sharepoint2010Managementshell
Type the command
Step2: Add Solution Package
Add-SPSolution “C:\SharePoint2010Solution.wsp”
Step3: Install Solution Package
Install-SPSolution –Identity SharePoint2010Solution.wsp –WebApplication http://myserver –GACDeployment
If you are using Sandbox Solution,
Step4: Install Solution Package
Install-SPUserSolution –Identity SharePoint2010Solution.wsp –WebApplication http://myserver –GACDeployment
For Updating the Sharepoint 2010 Solution type the following commands
Step5: Update Solution Package
Update-SPSolution –Identity SharePoint2010Solution.wsp –LiteralPath “C:\SharePoint2010Solution.wsp” –GacDeployment
For retract and remove a solution, type the following commands:
Step 6: Uninstall Solution Package
Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myserver
Step7: Remove Solution Package
Remove-SPSolution–Identity MySharePointSolution.wsp
No comments:
Post a Comment