How to Upload Wsp File in Sharepoint 2013 Online
In this post, nosotros will learn how to install and deploy WSP SharePoint Solutions using PowerShell for SharePoint 2016, 2013, and SharePoint 2010.
- ane What is the SharePoint Solution Package (WSP)?
- 1.1 What're the required permissions to install and deploy WSP SharePoint Solutions?
- i.ii How to install and deploy WSP SharePoint Solution Parcel?
- 1.2.1 How to deploy WSP in SharePoint 2016 using PowerShell?
- 1.2.two How to deploy WSP in SharePoint 2010 using PowerShell?
- 1.3 How to deploy WSP SharePoint Solution using SharePoint Central Administration?
- 1.four How to Fill-in all deployed SharePoint solutions (WSP) within the farm?
- 1.5 How to bulk deploy WSP SharePoint Solutions?
- one.6 How to uninstall a WSP SharePoint Solution Package using PowerShell
- i.6.1 Retract SharePoint WSP Solution Packet using PowerShell
- 1.6.2 Remove SharePoint WSP Solution Package using PowerShell
TheSharePoint solution package (WSP) is a distributed package that delivers your custom SharePoint Server development work to the Web servers or the application servers in your server farm.
The solution parcel is a CAB file with a .wsp file proper noun extension and a manifest file.
You tin utilise the subcontract account to deploy WSP SharePoint Solutions on your subcontract but this will require adding information technology to the Local Ambassador Grouping at least during the deployment procedure! But actually, it's not recommended and near organizations disallow the subcontract account to login to the server.
So Instead, you should utilize Setup Account to deploy a WSP SharePoint solution parcel, or another account that should have the below permissions:
- SharePoint Farm Administrator.
- A fellow member of the Local Administrators Group on any computer on which yous run Windows PowerShell.
- A db_owner database base function permission on the SharePoint Config, Admin, and Content databases.
To check what are the main differences between Farm Account and Farm Administrator, Please check SharePoint Service Account Best Practices 2019/2016
As we know, y'all tin can't add WSP SharePoint solution through the SharePoint Central Administration, and you must utilise the PowerShell to Add a new WSP solution to the SharePoint Solution Direction.
Also, the SharePoint deployment process consists of 2 main steps:
- Add WSP SharePoint solution.
- Install WSP SharePoint Solution.
To deploy a SharePoint WSP solution in SharePoint 2016 and SharePoint 2013, you have to do the following:
- Open SharePoint Management Shell every bit Ambassador.
- Type the below Add-SPSolution cmdlet to add the WSP solution.
Add-SPSolution -LiteralPath "C:\Solution\Qassas.wsp"
- And so, type the below Install-SPSolution cmdlet to deploy the WSP SharePoint Solution for a specific web application on your subcontract.
Install-SPSolution –Identity Qassas.wsp –WebApplication http://Server/ -GACDeployment
Annotation:
GACDeployment
is the parameter that enables SharePoint to deploy the assemblies in the global assembly cache.
In SharePoint 2010,2007, you can use the below cmdlets to add and install a WSP SharePoint solution using stsadm
# Add WSP Solution in SharePoint using Powershell stsadm.exe -o addsolution -filename "C:\Solution\Qassas.wsp"
# Install WSP Solution in SharePoint using Powershell stsadm -o deploysolution -name Qassas.wsp -url http://Server/ -local -force
The STSADM is deprecated in SharePoint 2016.
As nosotros before mentioned, You cannot upload a SharePoint solution to subcontract solution from Central Administration, you lot must first useAdd-SPSolution
cmdlet to upload the WSP solution, then you can use PowerShell or Central Administration to deploy the uploaded solution!
To deploy WSP SharePoint Solution using SharePoint Fundamental Administration, you should practise the following:
- Open Fundamental Administration > System Settings >Manage farm solutions.
- Click on the solution that needs to deploy.
- Click on deploy solution to install the solution
In Solution Management, there is no choice to backup the deployed solution before deploying a new release, so that nosotros accept implemented a simple and smart PowerShell script that will aid you lot to backup all deployed WSP solutions with versioning and log features to overcome this limitation in the SharePoint Solution Management.
We take likewise implemented a new PowerShell Script called "WSP SharePoint Deployer" that would help you to safely and easily install and deploy WSP SharePoint 2019 solutions on your farm with Backup, Rollback, Logging, and Versioning capabilities.
To uninstall a SharePoint solution from your SharePoint farm, yous must first retract the solution then remove it.
Uninstall-SPSolution -Identity contoso_solution.wsp
After retracting the Sharepoint solution, you lot can at present remove it via the below Cmdlet:
Remove-SPSolution -Identity contoso_solution.wsp
Applies To
- SharePoint 2016.
- SharePoint 2013.
- SharePoint 2010.
Run across also
- Backup all WSP SharePoint Solutions using PowerShell
- WSP SharePoint Deployer
- How to Uninstall a SharePoint (WSP) Solution Parcel in SharePoint 2010 / 2013
Source: https://spgeeks.devoworx.com/how-to-deploy-a-sharepoint-wsp-solution-package/