Monday, December 19, 2011

Deploying/retracting a SharePoint 2010 solution that installs a GAC-deployed feature via Powershell

This might be useful information if you're attempting to deploy a .wsp file that installs a GAC-deployed feature on a SharePoint 2010 farm:
Accessing Powershell:
  1. Click Start -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Management Shell
Deploying the solution:
  1. Add-spsolution -literalpath \\filepath\wspfilename.wsp
  2. Install-spsolution -identity wspfilename.wsp -webapplication http://webapplicationname -gacdeploy
  3. Enable-spfeature featuredirectoryname -Url http://webapplicationname
Retracting the solution:

  1. Disable-spfeature featurefoldername -Url http://webapplicationname
  2. Uninstall-spsolution -identity wspfilename.wsp -webapplication http://webapplicationname
  3. Remove-spsolution -identity wspfilename.wsp

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.