Add, deploy and install a solution into sharepoint 2010 web application

Something to remember:

  • A solution is made by a .wsp file and one or more .dll
  • You have to run command by sharepoint 2010 management shell
  • You have to retract and remove solution if you have installed yet

Ok.

All you have to do is run theese two commands:

  • Add-SPSolution <SolutionFilePath>.wsp
  • Install-SPSolution -Identity <SolutionFilePath>.wsp -WebApplication <WebApplicationURL> -GACDeployment -force

That’s all!

Then you can manage your solution in Sharepoint Central Administration under System Settings ->Manage farm solutions.