Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to add a list, library, and custom web part to an existing .WSP file. I cracked open the existing .WSP file (renamed it to .cab and extracted it) and it contains list instance templates, template modules, and web templates. Is what I want to do possible?

share|improve this question
    
Was that WSP a saved site template, or a solution built in Visual Studio? –  James Love Feb 6 '12 at 18:05
    
It was a saved site template. –  daver306 Feb 6 '12 at 18:06
add comment

3 Answers

The only method I can think of, which is Alex's, seems quite messy in my opinion, and might break current sites that use any templates built from that WSP.

My suggestion is to start a new solution in visual studio, and have it supplement your WSP.

That way, you have complete control over the solution as you have the source right there.

share|improve this answer
add comment

Yes, it's possible. A solution package is a simple CAB archive with files and several instruction files. You need to modify solution's manifest and DDF file with instructions to makecab.exe. See the details here: http://msdn.microsoft.com/en-us/library/aa543741.aspx

share|improve this answer
add comment

In order to Unpack and Repack it again you can download and use this simple tool from here:
extract or unpack wsp files and vise versa
download it from end of post by the name of: "WSPCompression.zip" and password of zip archive is: www.itnerd.ir

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.