Javascript required
Skip to content Skip to sidebar Skip to footer

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.

  1. ane What is the SharePoint Solution Package (WSP)?
    1. 1.1 What're the required permissions to install and deploy WSP SharePoint Solutions?
    2. i.ii How to install and deploy WSP SharePoint Solution Parcel?
      1. 1.2.1 How to deploy WSP in SharePoint 2016 using PowerShell?
      2. 1.2.two How to deploy WSP in SharePoint 2010 using PowerShell?
    3. 1.3 How to deploy WSP SharePoint Solution using SharePoint Central Administration?
    4. 1.four How to Fill-in all deployed SharePoint solutions (WSP) within the farm?
    5. 1.5 How to bulk deploy WSP SharePoint Solutions?
    6. one.6 How to uninstall a WSP SharePoint Solution Package using PowerShell
      1. i.6.1 Retract SharePoint WSP Solution Packet using PowerShell
      2. 1.6.2 Remove SharePoint WSP Solution Package using PowerShell

What is the SharePoint Solution Package (WSP)?

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.


What're the required permissions to install and deploy WSP SharePoint Solutions?

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:

  1. SharePoint Farm Administrator.
  2. A fellow member of the Local Administrators Group on any computer on which yous run Windows PowerShell.
  3. 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


How to install and deploy WSP SharePoint Solution Package?

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.

SharePoint WSP Solutions list

Also, the SharePoint deployment process consists of 2 main steps:

  1. Add WSP SharePoint solution.
  2. Install WSP SharePoint Solution.

How to deploy WSP in SharePoint 2016 using PowerShell?

To deploy a SharePoint WSP solution in SharePoint 2016 and SharePoint 2013, you have to do the following:

  1. Open SharePoint Management Shell every bit Ambassador.
  2. Type the below Add-SPSolution cmdlet to add the WSP solution.
            Add-SPSolution -LiteralPath "C:\Solution\Qassas.wsp"                      
  1. 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.

How to deploy WSP in SharePoint 2010 using PowerShell?

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.


How to deploy WSP SharePoint Solution using SharePoint Central Administration?

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:

  1. Open Fundamental Administration > System Settings >Manage farm solutions.
Manage Farm Solution
  1. Click on the solution that needs to deploy.
SharePoint WSP Solutions list
  1. Click on deploy solution to install the solution
Deploy solution via CA

How to Fill-in all deployed SharePoint solutions (WSP) within the farm?

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.

backup all SharePoint WSP Solutions deployed on SharePoint farm

How to bulk deploy WSP SharePoint Solutions?

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.

install and deploy WSP SharePoint 2019 powershell

How to uninstall a WSP SharePoint Solution Package using PowerShell

To uninstall a SharePoint solution from your SharePoint farm, yous must first retract the solution then remove it.

Retract SharePoint WSP Solution Package using PowerShell

            Uninstall-SPSolution -Identity contoso_solution.wsp          

Remove SharePoint WSP Solution Package using PowerShell

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

troutonounted.blogspot.com

Source: https://spgeeks.devoworx.com/how-to-deploy-a-sharepoint-wsp-solution-package/