Repacking driver.cab
#1
Posted 12 September 2004 - 08:42 PM
#2
Posted 12 September 2004 - 10:30 PM
#3
Posted 13 September 2004 - 07:13 AM
#4
Posted 13 September 2004 - 09:16 AM
RyanVM, on Sep 13 2004, 03:13 PM, said:
Why don't you take a look at Jdeboeck's batch files? They are able to remove drivers and other stuff and then recompress everything!
http://jdeboeck.msfnhosting.com
#5
Posted 13 September 2004 - 09:33 AM
Here's the command line for it:
cabarc -r -p -m LZX:21 N mmssetup.cab *.*
I've used it several times when I was building both unattended XP install discs and testing MCE 2005. It's part of an offical Microsoft SDK that you can download free from their site (sorry cant remember where). It's offical name is "Cabinet Software Development Kit" the commands I've put in are very well documented but I've found I can shave a few meg off any standard MS cab by using this higher compression optimisation.
#6
Posted 13 September 2004 - 10:00 AM
Bâshrat the Sneaky, on Sep 13 2004, 11:16 AM, said:
RyanVM, on Sep 13 2004, 03:13 PM, said:
Why don't you take a look at Jdeboeck's batch files? They are able to remove drivers and other stuff and then recompress everything!
http://jdeboeck.msfnhosting.com
That's what I use
I think I'm gonna PM nuhi to get him in this thread
#7
Posted 13 September 2004 - 10:01 AM
knight_dkn, on Sep 13 2004, 11:33 AM, said:
Here's the command line for it:
cabarc -r -p -m LZX:21 N mmssetup.cab *.*
I've used it several times when I was building both unattended XP install discs and testing MCE 2005. It's part of an offical Microsoft SDK that you can download free from their site (sorry cant remember where). It's offical name is "Cabinet Software Development Kit" the commands I've put in are very well documented but I've found I can shave a few meg off any standard MS cab by using this higher compression optimisation.
LZX:21 is what's giving you the higher compression. Those options are available with makecab as well, using the command switches /D CompressionType=LZX and /D CompressionMemory=21.
#8
Posted 13 September 2004 - 05:35 PM
.Set FolderSizeThreshold=5000000
or
.Set FolderSizeThreshold=2500000
Thx to mr. GreenMachine
#9
Posted 13 September 2004 - 06:21 PM
Thanks
(And I KNEW it was GreenMachine who posted it first
#10
Posted 13 September 2004 - 06:48 PM
makecab /D CompressionType=LZX /D CompressionMemory=21This is for individual files, I suppose.
#11
Posted 13 September 2004 - 08:18 PM
prathapml, on Sep 13 2004, 08:48 PM, said:
makecab /D CompressionType=LZX /D CompressionMemory=21This is for individual files, I suppose.
And it's completely irrelevant. In fact, I already said those settings weren't what I needed.
RyanVM said:
#12
Posted 13 September 2004 - 09:07 PM
Thanks a million! :thumbsup
#13
Posted 14 September 2004 - 09:13 AM
RyanVM, on Sep 14 2004, 05:07 AM, said:
Thanks a million! :thumbsup
Could you maybe higher that value to get an even smaller driver.cab?
#14
Posted 14 September 2004 - 10:00 AM
FolderSizeThreshold=5000000 made a HUGE difference.
#15
Posted 14 September 2004 - 03:04 PM
This is what it says about FolderSizeThreshold:
Quote
--
Pyron
#16
Posted 14 September 2004 - 03:59 PM
#17
Posted 14 September 2004 - 06:23 PM
The default value is infinity (or at least way too high), thus everything is compressed into one "folder". Problem is, setup access a few "random" files, at different times. Thus the "hang" when getting a file from the end of the folder. Another good trick, once you get the other stuff off your plate, would be to move the few files that ARE used during setup to the front of the file, possibly uncompressed, and then you could pack the rest tighter. Another Microsoft recommendation is to group similar files together. When creating the list of files to add to DRIVERS.CAB, I use the DIR command, with a qualifier (/O-E) to list files by extension, in reverse order. Thus the sys files come before the exe and dll files.
#18
Posted 14 September 2004 - 06:24 PM
#19
Posted 14 September 2004 - 06:51 PM
I played with it a bit, way back when, and it seemed the order tweaks did not make nearly the impact the folder size did. I still believe the best would be to study DOSNET.INF and TXTSETUP.SIF, and see which files are actually (always) extracted from DRIVERS.CAB, and put them uncompressed in the begining. On the other hand, I was assured that Microsoft did not do anything fancy like this, and I, like you, lost motivation to tweak every byte and second out of it.
So ... in answer to your question, I don't really know which order they are extracted in, but I am sure it is not sequentially.



Help


Back to top









