Pages

Tuesday 19 June 2012

web part installation using .wsp solution package file

steps to deploy .wsp file into sharepoint :

• Copy the .wsp file into a location where you have planned to deploy.
• Open SharePoint 2010 Management Shell as administrator
• To Add the solution to your Sharepoint
Add-SPSolution "C:\YourFolder\SampleWebPart.wsp"


• To Install the Solution to your Sharepoint
Install-SPSolution -identity SampleWebPart.wsp -WebApplication http://yoursharepointserver -GACDeployment
• Ignore -webapplication "http://.." in case if you want to deploy solution into entire farm

• To add a component to the Web Part gallery navigate to http://<MyServer>/_layouts/newdwp.aspx, where <MyServer> is the name of the server on which your SharePoint site is deployed.
• Select the check box next to <YourWebPartNamespace>.<YourWebPartName>.
• Click Populate Gallery to add the YourWebPartName Web Part to the Team Site gallery.
• After this the webpart will appear on webpart gallery and can be used or added to any pages

•To Uninstall a Solution in Sharepoint
Uninstall-SPSolution –Identity SampleWebPart.wsp –WebApplication http://yoursharepointserver

• To Remove a solution from Sharepoint
Remove-SPSolution –Identity SampleWebPart.wsp