Docteur L – François Lessard

SharePoint Architect, IT Manager and IT Specialist

  • Author:
  • Published: Oct 12th, 2011
  • Category: Administration, Deployment, Development, PowerShell, Solutions
  • Comments: None
  •             

How to deploy a solution package

Tags: , , , ,

Using PowerShell, enter the following:

For a global package deployment

#add solution to the solution store
$solution = Add-spsolution C:path-to-my-wsp

#Install solution
install-spsolution -identity $solution -gacdeployment -immediate

#Uninstall solution
uninstall-spsolution -identity mysolutionname.wsp -immediate

#Remove Solution from the solution store
remove-spsolution mysolutionname.wsp

For a scope package deployment

#add solution to the solution store
$solution = Add-spsolution C:path-to-my-wsp

#Install solution
install-spsolution -identity $solution -webapplication http://mywebappurl -gacdeployment -immediate

#Uninstall solution
uninstall-spsolution -identity mysolutionname.wsp -webapplication http://mywebappurl -immediate

#Remove Solution from the solution store
remove-spsolution mysolutionname.wsp
Share on TwitterShare on LinkedInSubmit to StumbleUponDigg ThisSubmit to reddit

Tags: , , , ,



Leave a Reply

You must be logged in to post a comment.

© 2011 Docteur L – François Lessard. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.

Switch to our mobile site