MSFN Forum: Creating multi-file .cab files - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Creating multi-file .cab files how to do it. Rate Topic: -----

#1 User is offline   random667 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 21-December 04

Posted 17 October 2007 - 04:08 PM

You can use winrar or pretty much any other archiving software to extract and view files that are already stored in a .cab file, so i wont be going into detail about that.

I searched this forum for a way to add multiple files to a .cab, but i couldn't find the info, maybe i just missed it though.
I tried AlphaZip, but it was just way to slow and unresponsive, forcing me to smack my PC around a few times.
So i searched Google, and this is what i figured out.

Cab multiple files:

1. Get the "Microsoft Cabinet Software Development Kit" here

2. Run cabsdk.exe, extract all files to the windows/system32/ Directory.

3. Open a command prompt to the folder where the files you want to put in a cab are stored.

4. Enter this command, it will tell cabarc.exe to put all of the files in that directory into a cab file named "FileName.cab" with maximum compression:
cabarc -m lzx:21 n FileName.cab *

And thats all there is to it, easy when you know how.
Hopefully this info will save someone else some time.
:hello:

This post has been edited by random667: 17 October 2007 - 04:33 PM



#2 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 October 2007 - 04:56 PM

Thanks, I could use this (just have to memorize the switch)

#3 User is offline   random667 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 21-December 04

Posted 18 October 2007 - 08:23 AM

Thanks, but i think i ran into a problem. :unsure:

After i modified my files and created a new DRIVER.CAB my unattended install goes really slow during the "Setup is copying files" portion of the install.
I even tried making the cab file with power archiver, but i still get the same problem.
If i put the original DRIVER.CAB back into the cd, then the setup goes back to normal speed.
Maybe i need to modifype the cab file or the files inside of it? or maybe there is some other options i am missing.

#4 User is offline   computerwizkid 

  • Member
  • PipPip
  • Group: Members
  • Posts: 169
  • Joined: 24-August 07

Posted 29 October 2007 - 12:12 PM

To make a Cab file:
1.Make a folder having all the files you want for that cab file.
2.Download and Install WinRAR.Right-click the folder having the files for the cab file and click in WinRAR section "Add to archive.Select ZIP compression and on file name,backspace .zip with .cab.Make a name.
3.Click OK and You have a cab file.


I have been using this method for making cab files for my OS.
This method is one I created myself.

HAVE FUN!!! :thumbup :thumbup :thumbup

#5 User is offline   random667 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 21-December 04

Posted 01 November 2007 - 10:22 AM

Thanks computerwizkid, I'll try that.

#6 User is offline   phkninja 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 466
  • Joined: 28-February 05

Posted 01 November 2007 - 10:57 AM

Does that method actually work with windows???

By doing this does the file header not read as a zip file.

A proper method would be to use something like Tugzip that will create a cab file by
Right click on folder -> Add to ..... -> change the file type to cab

Or

Right click on folder -> Add to xxx.cab

where xxx is the folder name.

I prefer to open the folder and select all the files, right click and add to cab. That way you dont have the folder when extracting (eliminates a folder within a folder scenario)

#7 User is offline   Zoinkity 

  • Junior
  • Pip
  • Group: Members
  • Posts: 59
  • Joined: 02-November 07

Posted 04 November 2007 - 09:33 PM

The structure of cabinet files is a little different from most other archive types, and I have yet to see a single program that appends to them in a sensible fashion.

Cabinets are divided into 'folders', which is to say that groups of files are compressed together, and that these groups are all archived into a single cab file. Folders aren;t like those on your filesystem; these are arbitrary groups you compress together because they have similar characteristics. Compression rate and decompression/seek speed is dependant on:
1) how large each folder is (in size and quantity)
2) how how well those files happen to compress together
3) type of compression used.

So, if you were, say, to just append the cabinet itself with an additonal file, that file probably wouldn't compress well, but the cabinet's seek/decompression rate would be about the same. However, if (like most utilities) it just tore the whole thing apart, stuffed everything into a single folder, and all that mess was compressed in one huge block of doom it would take for freaking ever to retrieve a single file from the end of your LZ compressed data.

So, I know that wasn't really helpful, but hopefully it was informative. Cabs are rather neat ;*)

#8 User is offline   Ascii2 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 427
  • Joined: 31-December 06

Posted 31 October 2009 - 01:35 PM

Is it possible to store a directory structure in CAB archives?

#9 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,271
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 31 October 2009 - 01:43 PM

OK... search for something called CabPack (google it). I use it; it's a GUI interface for makecab (similar to cabarc) and will do everything needed/wanted. Be sure to get the "update" as well.

Here it is directly from the author -
http://www.larsheder....de/cabpack.htm

Info + download link for MS SDK -
http://support.microsoft.com/kb/310618

(old thread, but there ya go...)

edit - forgot to mention - runs fine on ME/2K/XP/2K3

edit2 - points of interest (while searching for "makecab.ovl")
"(note: it renames makecab.exe to makecab.ovl)"
"Later makecab.exe versions are limited to specific windows versions."

This post has been edited by submix8c: 31 October 2009 - 02:20 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy