Deploying custom wsp in SharePoint FARM are done in 2 steps - Adding solution, Deploying/Installing solution. These PowerShell commands will work with SharePoint 2010 and SharePoint 2013. For older versions like MOSS 2007, you need to use STSATM commands.
Verify and make sure the account has necessary permissions and SharePoint Management Shell is run as Administrator.
Add solution - Add-SPSolutionAdd the wsp solution package to the SharePoint FARM solution database. This is required before deploying the package.
Add-SPSolution -LiteralPath
Deploy solution - Install-SPSolution
The solution deployment command varies a bit based on the criteria whether it's for a particular web application or all web applications.
The deployment process can be done via Central Admin too.
[Deploy to single Web Application]
Install-SPSolution -Identity -WebApplication
[Deploy to all Web Applications]
Install-SPSolution -Identity -AllWebApplications -GACDeployment
Example
Add-SPSolution -LiteralPath "C:\WSP\Code2CareSolution.wsp"
Install-SPSolution -Identity Code2CareSolution.wsp -WebApplication "http://code2care.org"
More Posts related to SharePoint,
- SharePoint error - An exception occurred when trying to issue security token: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms..
- PowerShell iterate and get all SharePoint sites and sub sites
- SharePoint Online: Editing session has ended Message
- How to Share Microsoft SharePoint Site with Users or Groups
- How to delete SharePoint Online List Item using REST API
- SharePoint List excel import - This table exceeds the maximum number of supported rows
- How to disable SharePoint subsite creation option for owners
- SharePoint 2010 August 2015 Update KB3055049 - Duplicate Document ID issue bug fixed
- SharePoint Server 2016 Preview installation error - This Product Key isn't a valid Microsoft Office 2016 Product Key. Check that you've entered it correctly.
- How to upload file programmatically to SharePoint Document Library using Server Object Model C# .Net
- Access URL for SharePoint Tenant Admin Center (Online Office 365)
- Error when deleting SharePoint Online folder or file
- How to extend retiring SharePoint 2010 Workflows and continue with Office 365
- How to generate client id and secret to register SharePoint App with OAuth
- How to delete SharePoint List Item programmatically using C#.Net
- How to retrieve all SharePoint Online List Items using Rest API
- [Solved] SharePoint Search Internal server error exception
- Create SharePoint Site Collection using PowerShell New-SPSite
- Fix SharePoint PowerShell error - The term Get-SPweb is not recognized as the name of a cmdlet function script file or operable program
- How to enable anonymous public access for SharePoint Online site collection, file, folder without login ?
- SharePoint Server 2016 installation System Hardware requirements
- How to create SharePoint Online List Item using REST API
- Changed AD user display name showing old name in SharePoint
- Recommended size and resolution for SharePoint Online Site logo
- Microsoft 365: How to Turn Off Delve in SharePoint Online for All Users
More Posts:
- [Fix] zsh: command not found: awscli [Mac Terminal] - AWS
- Download Google Chrome setup exe file using PowerShell - Powershell
- New-SPLogFile PowerShell - create new SharePoint log file - SharePoint
- Two Ways to Extract rar (*.rar) files on Mac - MacOS
- Check version of pip package installer for Python - Python
- SharePoint - Use Today's Date Time in list view filter and calculated column - SharePoint
- Notepad++ Save Failed - Please check if this file is opened in another program. - NotepadPlusPlus
- How to fix Microsoft Windows 10 update error 80070020 - Microsoft