1) Run
the below command on SharePoint 2010 Management Shell.
Add-SPSolution -LiteralPath "path to wsp
file\EventReceiverProject.wsp"
Example: Add-SPSolution
-LiteralPath "C:\EventReceiverProject.wsp"
2) On
the Central Administration Home page, click System Settings.
3) In
the Farm Management section, click Manage farm
solutions.
4) On
the Solution Management page, click the solution that you want to deploy.
5) On
the Solution Properties page, click Deploy Solution.
6) On
the Deploy Solution page, in the Deploy When section, select
one of the following:
a) Now
b) At
a specified time. If you select this option, specify a time by using the
date and time boxes we recommend that you select a time when the load on the
destination servers is low.
7) In the Deploy
To? Section, in the A specific web application list,
click either All web applications or select a specific Web application.
8) Click OK.
9) Now
open your site, go to site settings ->Site features
10) Activate
the feature if it is not active.
Here’s
a quick overview of what we’ve learned with a few more commands you’ll probably
need along the way:
·
Add
Solution
Add-SPSolution c:<path><solution filename>.wsp
Add-SPSolution c:<path><solution filename>.wsp
·
Deploy/Install
Solution
Install-SPSolution –Identity <solution file>.wsp –WebApplication http://<url> -GACDeployment
Install-SPSolution –Identity <solution file>.wsp –WebApplication http://<url> -GACDeployment
·
Update
Solution
Update-SPSolution –Identity <solution file>.wsp –LiteralPath c:<path><solution file>.wsp –GACDeployment
Update-SPSolution –Identity <solution file>.wsp –LiteralPath c:<path><solution file>.wsp –GACDeployment
·
Uninstall
Solution
Uninstall-SPSolution –Identity <solution file>.wsp –WebApplication http://<url>
Uninstall-SPSolution –Identity <solution file>.wsp –WebApplication http://<url>
·
Remove
Solution
Remove-SPSolution –Identity <solution file>.wsp
Remove-SPSolution –Identity <solution file>.wsp