Here’s a common issue: You export a site as a template, save down your WSP file, browse out to your client environment and prepare to upload your WSP but you receive an error that looks something like this:

After some hunting you come to find out that your source environment had Project Server installed and your destination environment does not. This same scenario can happen all over the place. Consider going from an Enterprise environment to a Standard environment or from on premise to Office 365.
So how do you fix this?
Extract the WSP
- 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.
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
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
Hope that helps!
Cory Peters is the Chief SharePoint Architect at Eastridge Technology, a Microsoft Gold Partner in Winston-Salem, NC.




Excellent! Didn’t know how to do the second step automatically, really glad to see that it’s that simple (well, more or less).