Jump to content

Recommended Posts

Posted

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! :blushing:


Posted

For cabbing multiple files in a directory, I use PowerArchiver because I don't know how to do it with makecab. :lol:

What is the trick for cabbing multiple files?

Posted

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.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/

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...