SharePoint Solutions – Add, Deploy, Retract and Remove using PowerShell and STSADM

When you want to update a solution, sometimes you can’t retract a solution from Central Admin.

Error messages:
"A feature with ID xxxxxxxxx has already been installed in this farm. Use the force attribute to explicitly re-install the feature.”

Do the following:

  1. Use PowerShell to Retract the solution:

Uninstall-SPSolution -Identity solutionName.wsp –WebApplication http://SharepointWebApp/

  1. Use STSADM to remove the solution:
    (Go to the command line (Start – Run – cmd), then go to this path: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN, then type the following command)

stsadm -o deletesolution -name "solutionName.wsp" -override

  1. Use PowerShell to add the solution:

Add-SPSolution -LiteralPath C:TempmovingsolutionName.wsp

  1. Use PowerShell to deploy the solution (with "-Force” attribute):

Install-SPSolution –Identity CustomerDetails.wsp –WebApplication http://SharepointWebApp/ –GACDeployment -Force

Turhal Temizer

Yorum Gönder

0 Yorumlar

Ad Code

Responsive Advertisement