Monday, May 14, 2007

Disable size limits for wsp (cab) files

Couple of days ago we added a big zip file to our SharePoint deployment and out of the sudden the solution started behaving strangely. After some trial and error Robin found out that every time we cross the 360KB limit we have a problem. Wait, 360KB this rings the bell, but it was such a long time ago. What was it? You guessed it right the default limit for file size of makecab.exe is 360KB the size of 5.25 inch diskette. Talk about legacy support... To disable all kinds of limitations I added these lines to my DDF files and everything worked fine again.

.Set CabinetFileCountThreshold=0
.Set FolderFileCountThreshold=0
.Set FolderSizeThreshold=0
.Set MaxCabinetSize=0
.Set MaxDiskFileCount=0
.Set MaxDiskSize=0

You may wonder why would I need a zip file in my solution, but that's another post in the works. Stay tuned. Dovizhdane!

2 comments:

Anonymous said...

Thanks for this post as I am also facing the same problem. But the thing which I am not able to understand is that where to find this DDF file and where to keep this so that Visual Studio can re-package the cab file again.
With losts of Thanks and Regards

Mikhail Dikov said...

I am assuming you are using VSeWSS? If you need to have more control over the creation of the WSP, I suggest you use either WSPBuilder or STSDEV. Both tools are available on codeplex and allow more control than VSeWSS?