WSP Solution Deployment
There are 2 ways to deploy WSP solutions:
- Using PowerShell and shell commands.
- Using SharePoint UI.
Deploy using PowerShell
-
- Extract the zip file.
- In the server open -> SharePoint 2019 Management Shell
- In SharePoint 2019 Management Shell execute the below command to add the solution package
Add-SPSolution <FilePath>
Replace the with <FilePath> with the extracted path of the file “ndsAttachExtn.wsp” - In SharePoint 2019 Management Shell execute the below command to install the added solution
Install-SPSolution ndsAttachExtn.wsp -GACDeployment - Place the netDocShare License Key text file in the below location.
https://<SITE_DOMAIN>/SiteAssets/netDocShareAttachExtension/netDocShareLicenseKey.txt
Replace <SITE_DOMAIN> with the exact domain name. - Now you can see the netDocShare Attach icon in the List Item Ribbon.
Deploy using SharePoint UI
Upload the WSP File to Solution Gallery and Activate the solution, use the following steps to deploy a WSP solution in the SharePoint Site.
-
- Log in as a Site Collection Administrator >> Navigate to your SharePoint Site Collection (Root Site) >> Click on “Site settings”.
- On the site setting page, click on the “Solutions” link under the “Web Designer Galleries” section. This opens the solution page as below screen. On the solutions page, Click on the “upload solution” button from the ribbon.
- Browse and select the WSP file from your local disk and upload the solution.
- After clicking on the “OK” button, SharePoint Uploads the WSP file and presents you a page from which you can activate the solution, as shown below. It takes a while to activate the solution.
- Finally, the solution will be activated in your SharePoint site!
WSP-Solution-Retract
There are 2 ways to retract WSP solutions:
- Using PowerShell and shell commands.
- Using SharePoint UI.
Retract using PowerShell
-
- In the server open -> SharePoint 2019 Management Shell
- In SharePoint 2019 Management Shell execute the below command to uninstall the solution package
Uninstall-SPSolution ndsAttachExtn.wsp - In SharePoint 2019 Management Shell execute the below command to install the added solution
Remove-SPSolution ndsAttachExtn.wsp
Now you can see the netDocShare Attach icon is removed in the Item Ribbon.
Retract using SharePoint UI
Use the following steps to deploy a WSP solution in the SharePoint site.
-
- Log in as a Site Collection Administrator >> Navigate to Central Administration >> Click on “System settings”.
- On the system setting page, click on the “Manage Farm Solution”.
- In the Solution Management page, click on the solution “ndsAttachExtn.wsp”.
- In solution properties click on “Retract Solution”.
- Finally, the solution will be retracted in the SharePoint site!