How to extract a WSP-Solution from Sharepoint?
Hi allI would like to copyall sharepoint solutions from one sharepoint envrionment to another. How can I extract the .wsp-solution files from the source sharepoint server?Kind regardsAlexander
February 9th, 2009 11:21am
I think there is no OOTB way to do that, because this files are stored in Config database and there is no way to get them from Central Admin. Nevertheless you can extract them by code:SPSolutionCollection solutions = SPFarm.Local.Solutions;foreach (SPSolution solution in solutions){ SPPersistedFile wspFile = solution.SolutionFile; wspFile.SaveAs("c:\\wsp\\" + solution.Name);}Blog de Barto MolinaMicrosoft MCP 6608632
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2009 3:45pm
Hi,The easiest is may be to download this tool :http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=37it allows you to download any existing solution. Then just rename your .wsp in .cab, double-click and extract manifest.xml.Best Regards
April 26th, 2009 12:13pm
Hi Alexander,
If you don't want to write a custom executable to do this, take a look at the following link that shows the PowerShell required:
http://www.sharepointbleached.com/2011/03/extract-wsp-solutions-from-sharepoint.html
Regards
Ben
Free Windows Admin Tool Kit Click here and download it now
March 20th, 2011 6:37pm