jbarnes007 Posted February 10, 2005 Posted February 10, 2005 I know this sounds stupid, but how do I repack driver.cab and SP2.cab? I can unpack them just fine using winrar or winzip but for the life of me cannot repack them as valid cabinet files. The easiest way please!
Alanoll Posted February 10, 2005 Posted February 10, 2005 makecab is how you repack them, but you'll need to generate a listing of all the files to included.
totoymola Posted February 10, 2005 Posted February 10, 2005 For cabbing multiple files in a directory, I use PowerArchiver because I don't know how to do it with makecab. What is the trick for cabbing multiple files?
eirogge Posted February 10, 2005 Posted February 10, 2005 a ddf-file which has to contain a listong of all files and some parameters for makecab
totoymola Posted February 10, 2005 Posted February 10, 2005 Yeah. I saw that somewhere. But I don't know what's inside the ddf file. Can you post an example?
eirogge Posted February 11, 2005 Posted February 11, 2005 easiest way is to make a fake setup with iexpress.exe.use some large files. while it is compressing go to the folder you are compressing, there is a temp ddf-file. dont know if it has a ddf extension or a .tmp or whatever *g*edit: i google't around a little bit and found the following sample file on msdn:;*** Sample Source Code MakeCAB Directive file example;.OPTION EXPLICIT ; Generate errors .Set CabinetNameTemplate=SampleCab.cab .set DiskDirectoryTemplate=CDROM; All cabinets go in a single directory.Set CompressionType=MSZIP;** All files are compressed in cabinet files.Set UniqueFiles="OFF".Set Cabinet=on.Set DiskDirectory1=SAMPLECAB.CABmanifest.xmlWebPart1.dwpWebPartLibrary1.dll;*** <the end>so thats the basic structure. you have to use makecab /F sample.ddf to use it but i', not sure if this will give best compression.nuhi probably knows about this from his nLite project.edit2:rem Compressing driver.cabecho .Set Cabinet=on>> driver.ddfecho .Set Compress=on>> driver.ddfecho .Set CompressionType=LZX>> driver.ddfecho .Set CompressionMemory=21>> driver.ddfecho .Set CabinetNameTemplate=driver.cab>> driver.ddfecho .Set MaxDiskSize=CDROM>> driver.ddfecho .Set DiskDirectory1=i386>> driver.ddffor /f %%i in ('dir /b i386\driver') do echo i386\driver\%%i>> driver.ddfmakecab /f driver.ddfdel driver.ddfdel setup.infdel setup.rptguess where it came from? ;D http://jdeboeck.msfnhosting.com/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now