SharePoint WSP Repackage
A few years ago I wrote an article explaining how to manually modify a SharePoint WSP solution using a specific software, over the years I got feedback about adware being added to the computers during the installation process of the software.
I recently tried to install this particular software and my antivirus automatically pop up saying that the file was not safe, to get rid of all this issues I decided to build a specific application to repackage all the files inside of the WSP solution.
A WSP is nothing more than a CAB file that contains a few XML files linking the resources that will be copied to SharePoint.
CAB files can be easily open with a zip tool like 7zip but the majority of the software’s do not compress files in the CAB format.
The WSP Repackage is really easy to use, just need to select the folder where all the WSP files are located, select the output directory and provide the name to the WSP file in a matter of seconds the compressed WSP solution will be ready.
In the first version the WSP Repackage only compress the files, if you want to add or remove files to the solution make sure that you reference them in the XML files otherwise they might be ignored when you deploy the solution or cause an error.
A tool like this is useful in scenarios where you need to edit a solution or webpart and you don’t have access to the Visual Studio project.
I have plans to make it more efficient, in the next version I’ll implement a validation that will check if all the files are referenced in the xml files and also if all the referenced files still exist in the solution.
Feel free to comment and give me your suggestions to the product.