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