SharePoint 2010 WSP Deployment

Power Shell

Add Solution
Farm
Add-SPSolution –LiteralPath "C:\PoweShell\MyPowerShellPackage.wsp"
Sandbox
Add-SPUserSolution –LiteralPath "C:\ PoweShell\MySharePointSolutionPackage.wsp" –Site http://webapplication/sitecollection

Install Solution

Farm  
Install-SPSolution –Identity MySharePointSolutionPackage.wsp –WebApplication http://webapplication –GACDeployment
Sandbox 
Install-SPUserSolution –Identity MySharePointSolutionPackage.wsp –Site http://webapplication/sitecollection

Updating

Farm 
Update-SPSolution –Identity MySharePointSolution.wsp –LiteralPath “C:\Deployment\MySharePointSolutionPackage.wsp” –GacDeployment
Sandbox
Update-SPUserSolution –Identity MySharePointSolution.wsp –Site http://webapplication/site –ToSolution MySharePointSolutionPackage.wsp
Uninstalling 
Farm 
Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://webapplication
Sandbox 
Update-SPUserSolution –Identity MySharePointSolution.wsp –Site http://webapplication/site –ToSolution MySharePointSolutionPackage.wsp

Removing

Farm
Remove-SPSolution –Identity MySharePointSolution.wsp
Sandbox
Remove-SPSolution –Identity MySharePointSolution.wsp

STSADM

Add solution
stsadm –o addsolution –filename "C:\STSADM\MySTSADMSolutionPackage.wsp"
Deploy Solution
stsadm –o deploysolution –name MySTSADMSolutionPackage.wsp –url http://webapplication –allowgacdeployment –immediate
Upgrade Solution
stsadm –o upgradesolution –name MySTSADMSolutionPackage.wsp –filename "C:\ STSADM \ MySTSADMSolutionPackage.wsp" –immediate
Retract Solution
stsadm –o retractsolution –name MySTSADMSolutionPackage.wsp –url http://webapplication –immediate
Remove Solution
stsadm –o deletesolution –name MySTSADMSolutionPackage.wsp

Comments

Popular posts from this blog

SharePoint RPC Protocols Examples Using OWSSVR.DLL

Send Email using SharePoint Rest API

Query suggestions in SP 2013 Using Rest API (/_api/search/suggest)