EDITING WSP FILES DIRECTLY / MANUALLY (Re-Packaging, makecab) – How To?


Exported site/web template could not be used to recreate the site:

Problem Applying Web Template

This web template requires that certain features be installed, activated and licensed. The following problems are blocking application of the template.

How to Fix?

  • EXTRACT THE WSP FILE

Download a tool like 7-Zip.
Right click the file
Select 7-Zip > Extract to WspName
Go ahead and go into the folders and edit any XML that you may need to. Using the example above you will need to edit the onet.xml file to remove the site collection feature reference.

Right click and extract the wsp file @ C:\Users\msmriyaz\Desktop\SPO-Backup level

  • BUILD THE DIRECTIVE FILE

Download makeddf and drop the makeddf.exe in the same directory as your extracted folder
Open command prompt
Change directory to the location of makeddf
Run the following command

makeddf /p WspName /d WspName.ddf /c WspName.cab

cd "C:\Users\msmriyaz\Desktop\SPO-Backup\SPO-Project Template v1.0"

makeddf.exe /p "SPO-Project Template v1.0" /d "SPO-Project Template v1.0.ddf" /c "SPO-Project Template v1.0.cab"

  • REMAKE THE CAB

Copy the newly created ddf file into your WspName folder

Go back to your command prompt

Change directory into the WspName folder

Run the following command

makecab /f WspName.ddf

Rename your newly created cab file to WspName.wsp and you’re done

One thought on “EDITING WSP FILES DIRECTLY / MANUALLY (Re-Packaging, makecab) – How To?

Comments are closed.