To Add the Solution in SharePoint
Add-SPSolution C:\YourFolder\SampleWebPart.wsp
To Update your Solution in SharePoint
you will need this if you want to update the Webpart that is already installed
Update-SPSolution –Identity SampleWebPart.wsp –LiteralPath C:\YourFolder\SampleWebPart.wsp –GACDeployment
To Install the Solution to your SharePoint
Install-SPSolution -identity SampleWebPart.wsp -WebApplication http://yoursharepointserver -GACDeployment
---- If you want to install in all web application in one go
Install-SPSolution -identity City_Wise_Requirements.wsp -AllWebApplications -GACDeployment
Now if something went horribly wrong or you just want to uninstall it you have to run this two commands
To Uninstall a Solution in SharePoint
Uninstall-SPSolution –Identity SampleWebPart.wsp –WebApplication http://yoursharepointserver
then Remove a solution from SharePoint
Remove-SPSolution –Identity SampleWebPart.wsp
Regards
Rashid Imran Bilgrami
Add-SPSolution C:\YourFolder\SampleWebPart.wsp
To Update your Solution in SharePoint
you will need this if you want to update the Webpart that is already installed
Update-SPSolution –Identity SampleWebPart.wsp –LiteralPath C:\YourFolder\SampleWebPart.wsp –GACDeployment
To Install the Solution to your SharePoint
Install-SPSolution -identity SampleWebPart.wsp -WebApplication http://yoursharepointserver -GACDeployment
---- If you want to install in all web application in one go
Install-SPSolution -identity City_Wise_Requirements.wsp -AllWebApplications -GACDeployment
Note: After install you need to populate the webpart by following steps
1) Go to site setting (Main site collection in case if you are in subsite)
2) Click on Under Web Design Gallery > Web part
3) Click New Document
4) Select Web part and then click on populate button
Now if something went horribly wrong or you just want to uninstall it you have to run this two commands
To Uninstall a Solution in SharePoint
Uninstall-SPSolution –Identity SampleWebPart.wsp –WebApplication http://yoursharepointserver
then Remove a solution from SharePoint
Remove-SPSolution –Identity SampleWebPart.wsp
Regards
Rashid Imran Bilgrami
Comments
Post a Comment