Patrick Heyde

Coming from SharePoint Support & Living in SQL BI & Moving to Windows Azure

How to extract WSP Files from SharePoint?

How to extract WSP Files from SharePoint?

  • Comments 6
  • Likes

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
  • Great idea and nice implementation. I'm sure it will be useful for many admins.

  • Works wonderfull and is verry usefull. Especially when you don't have a WSP repository after relocation projects. :-)

    Thanks !

  • Really usefull for Indra solutions.

  • Excellent tool, neat, simple and useful, thanks Patrick!

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

  • 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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment