Powered By Blogger

Jun 1, 2012


Deploy a WSP file in SharePoint 2010

In this blog post i'm going to explain how to deploy a WSP file using SharePoint 2010 Management Shell.
If the WSP file is already there in the farm, then first you need to retract that solution.

Go to SharePoint Central Administration 2010 and then select System Settings, then click on Manage farm solutions under Farm Management.


Then select the relevant WSP file and select Retract Solution in order to retract it.



Then click OK to retract the solution


Then Refresh the page to make sure that the status of the particular WSP file has changed to 'Not Deployed'. Once you finished the Retracting process, click on the WSP file and select 'Remove Solution'. Then click OK. Now the Complete solution file has removed from the application.

In order to upload the new WSP file you should open the SharePoint 2010 Management Shell as Administrator. Then type the below command.

add-spsolution -literalpath 'C:\CamoplastIntranet_05252012\Camoplast.Internet.SharePoint.wsp'

(C:\CamoplastIntranet_05252012\ - Local path of the new WSP file)

Then you will see a window as shown below.


Then go to the SharePoint Central Administrator 2010 again and go to Manage farm solutions. Then you will see the WSP file has added. In order to deploy it click on Deploy Solution. 


Then select the web application and click OK


Now you can see that your WSP file has successfully deployed.










No comments:

Post a Comment