Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Creating multi-file .cab files

- - - - -

  • Please log in to reply
8 replies to this topic

#1
random667

random667

    Newbie

  • Member
  • 10 posts
  • Joined 21-December 04
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:

Edited by random667, 17 October 2007 - 04:33 PM.



How to remove advertisement from MSFN

#2
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,310 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
Thanks, I could use this (just have to memorize the switch)

#3
random667

random667

    Newbie

  • Member
  • 10 posts
  • Joined 21-December 04
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
computerwizkid

computerwizkid

    Member

  • Member
  • PipPip
  • 169 posts
  • Joined 24-August 07
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
Random text :D

#5
random667

random667

    Newbie

  • Member
  • 10 posts
  • Joined 21-December 04
Thanks computerwizkid, I'll try that.

#6
phkninja

phkninja

    Advanced Member

  • Member
  • PipPipPip
  • 466 posts
  • Joined 28-February 05
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
Zoinkity

Zoinkity

    Junior

  • Member
  • Pip
  • 63 posts
  • Joined 02-November 07
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
Ascii2

Ascii2

    Advanced Member

  • Member
  • PipPipPip
  • 427 posts
  • Joined 31-December 06
Is it possible to store a directory structure in CAB archives?

#9
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,411 posts
  • Joined 14-September 05
  • OS:none specified
  • Country: Country Flag
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."

Edited by submix8c, 31 October 2009 - 02:20 PM.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users