Page 1 of 1
HELP! How do I repack Driver.cab and SP2.cab
#1
Posted 10 February 2005 - 02:37 PM
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!
#2
Posted 10 February 2005 - 02:58 PM
makecab is how you repack them, but you'll need to generate a listing of all the files to included.
#3
Posted 10 February 2005 - 05:01 PM
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?
What is the trick for cabbing multiple files?
#4
Posted 10 February 2005 - 05:04 PM
a ddf-file which has to contain a listong of all files and some parameters for makecab
#5
Posted 10 February 2005 - 05:10 PM
Yeah. I saw that somewhere. But I don't know what's inside the ddf file. Can you post an example?
#6
Posted 11 February 2005 - 01:05 AM
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:
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:
guess where it came from? ;D http://jdeboeck.msfnhosting.com/
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.CAB manifest.xml WebPart1.dwp WebPartLibrary1.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.cab
echo .Set Cabinet=on>> driver.ddf
echo .Set Compress=on>> driver.ddf
echo .Set CompressionType=LZX>> driver.ddf
echo .Set CompressionMemory=21>> driver.ddf
echo .Set CabinetNameTemplate=driver.cab>> driver.ddf
echo .Set MaxDiskSize=CDROM>> driver.ddf
echo .Set DiskDirectory1=i386>> driver.ddf
for /f %%i in ('dir /b i386\driver') do echo i386\driver\%%i>> driver.ddf
makecab /f driver.ddf
del driver.ddf
del setup.inf
del setup.rpt
guess where it came from? ;D http://jdeboeck.msfnhosting.com/
Share this topic:
Page 1 of 1



Help
Back to top









