Freigeben über


How to extract WSP Files from SharePoint?

Hello @all,

today I want to publish my tool on MSDN Code Gallery. In the past I found some SharePoint Server were nobody has the customization stored in a separate Storage.

This tool "SharePoint Farm Solution Extractor" will extract/download the installed solution as wsp file from SharePoint Farm to a specified path. In farm Migration scenarios it's very easy to build a duplicate farm, like for testing, etc..

Usage

SharePointFarmSolutionExtractor.exe -list
(This command list all WSP-Solution installed on the SharePoint Farm)

SharePointFarmSolutionExtractor.exe -extractAll c:\SharePointSolutions
(This command download all WSP-Solutions installed on the SharePoint Farm to the specified path)

SharePointFarmSolutionExtractor.exe -extractById c:\SharePointSolutions <GUID of the Solution>
(This command will download all WSP-Solution with matching the SolutionGUID to the secified path)

SharePointFarmSolutionExtractor.exe -extractByName
c:\SharePointSolutions <Name of the Solution>
(This command will download all WSP-Solution with matching the SolutionName to the secified path)

Requirements:
- .NET 2.0
- Microsoft.SharePoint.dll

regards

Patrick

Comments

  • Anonymous
    January 01, 2003
    just take ILSpy etc. to look inside ;-)
    The tool i've developed for MOSS2007 and in SP2010 it was no more necessary, because the powershell cmdlets for the same function were available. The Code is that easy:

    SPSolutionCollection solutions = SPFarm.get_Local().get_Solutions();
    foreach (SPSolution current in solutions)
    {
    // do something like Export, Display etc..
    }

    regards
    Patrick

  • Anonymous
    August 31, 2009
    Great idea and nice implementation. I'm sure it will be useful for many admins.

  • Anonymous
    January 11, 2011
    Works wonderfull and is verry usefull. Especially when you don't have a WSP repository after relocation projects. :-) Thanks !

  • Anonymous
    January 18, 2011
    Really usefull for Indra solutions.

  • Anonymous
    January 24, 2013
    Excellent tool, neat, simple and useful, thanks Patrick!

  • Anonymous
    July 14, 2014
    Excellent tool... not, if only the link wasn't dead.

  • Anonymous
    August 06, 2014
    Perfect tool, thanks for developing. Would you mind sharing the source code too?

  • Anonymous
    June 27, 2016
    Was very useful in my migration analysis. thanks for sharing...