RyanVM Posted September 14, 2004 Author Posted September 14, 2004 Good info to have - thanks! That definitely explains why 5000000 helped so much. I suppose if I were really bored, I'd see how 10000000 worked, but not now. I've got some other stuff on my plate to keep my busy
GreenMachine Posted September 15, 2004 Posted September 15, 2004 ****, missed my chance. I don't seem to make it over here much. Glad you found it RyanVM, I suffered very, very much till I changed that.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.
RyanVM Posted September 15, 2004 Author Posted September 15, 2004 Does Windows setup actually extract them in that order, though?
GreenMachine Posted September 15, 2004 Posted September 15, 2004 From what I see, there are some files that are always extracted (us* for example), and others that are extracted if needed, e.g. if the hardware needing the drivers is found. I think there are more .sys files used then .dll or .exe files, which is why I put them in that order.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.
Diabolical82 Posted September 15, 2004 Posted September 15, 2004 Maybe it's stupid question, how do i edit ddf?
GreenMachine Posted September 15, 2004 Posted September 15, 2004 Spend a week with the Cabinet SDK, and you will learn more than you want to know ... that's what I did.http://msdn.microsoft.com/library/default..../html/cabdl.aspIt is fairly complex, so perhaps not recommended reading for the faint of heart.
Diabolical82 Posted September 15, 2004 Posted September 15, 2004 Thanks! I took a look at jdeboeck's batch, should I add or remove the lines in there?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.ddfAccording to RyanVM, he doesnt want CompressionType=LZX and CompressionMemory=21, I guess I'll take those out and add FolderSizeThreshold=5000000. Correct me if I'm wrong.
RyanVM Posted September 15, 2004 Author Posted September 15, 2004 No, you can leave those settings in. Just add the FolderSizeThreshold key and you're good to go.I actually combined his decompress/compress batches into one and updated them for sp2. Send me an IM and I'll send it to you (I don't want to post it on here out of respect for his work).
Diabolical82 Posted September 16, 2004 Posted September 16, 2004 aww man, just tested my iso in vmware and ran into errorSetup cannot copy the file sp2.cab
RyanVM Posted September 16, 2004 Author Posted September 16, 2004 You didn't remove the entries in txtsetup.sif, dosnet.inf, or drvindex.inf, did you? IM me
Diabolical82 Posted September 16, 2004 Posted September 16, 2004 ehhh.. Its bit embarrassing to say this, I forgot to replace sp1 with sp2 variable.Thanks anyway
DisabledTrucker Posted September 16, 2004 Posted September 16, 2004 I have a question about using these figures, will they work when compressing with 7Zip? If so how would I represent them in it?
Pyron Posted September 16, 2004 Posted September 16, 2004 7zip has nothing to do with, sorry. The closest thing in 7zip would be the dictionary size, which influences decompression speed. (but only indirectly, lower compression ratio -> better decompression speed)-- Pyron
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