Showing posts with label add solution. Show all posts
Showing posts with label add solution. Show all posts

Tuesday, December 18, 2012

Adding and Deploying Solutions in SharePoint 2010

Adding and Deploying Solutions in SharePoint 2010
How we can add solutions in SharePoint 2010 ?
We can add solution via common line using either STSADM or PowerShell command while solution deployment can be done either via Central Admin or using STSADM or PowerShell

Command line:
Using STSADM:
stsadm.exe -o addsolution -filename yoursolutionpackage.wsp
Using PowerShell:
Add-SPSolution -LiteralPath <SolutionPath>

Now here comes deployment part
  • Deploy Solution using Central Administration
  • Open Central Administration
  • Go to System Settings
  • Click on Manage farm solutions
  • Select the solution from the list
  • Select Deploy Solution and select the web application where you want to deploy it
  • Click OK when you are done.
  • Click Deploy Solution
  • That’s all, we are done with deployment

Command line:
Using STSADM:
stsadm -o deploysolution -name yoursolutionpackagename.wsp -url http://sp-mach/ -local  -force
Using PowerShell:
Install-SPSolution -Identity <SolutionName> -WebApplication <URLname>