Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jiminaus

macrumors 65816
Dec 16, 2010
1,449
1
Sydney
I believe the OP wants to create a CAB. If I'm not mistaken, cabextract will only extract existing CAB files.

However, the link you gave did link to something called LCAB available in source form at http://ohnopub.net/~ohnobinki/lcab/.

Download the source from the website, extract it, open Terminal and then:

Code:
$ cd <put path of directory where you extracted the source here>
$ ./configure
$ make

This is make an lcab executable file in the same directory.

The usage from the Terminal or a shell script of this lcab executable is:

Code:
usage: lcab [options] inputfiles outputfile.cab

lcab will create a Cabinet File from inputfiles.
Inputfiles can also be directories together with option -r.

Options:
     -r        loop recursive through directories
     -n        create files without pathnames
     -q        be quiet!

lcab v1.0b11 (2003) by Rien (rien@geekshop.be)
 
Last edited:

Sander

macrumors 6502a
Apr 24, 2008
520
67
Or maybe the question was too specific, and you really want to know how to make an installer on the Mac..? Just checking...
 

MayPeng

macrumors member
Original poster
Nov 21, 2010
53
0
In mac os x , how to create .cab file just like windows os .

I am very sorry that i didn't express my real goal because of my bad programming cability.

Really, the situation is like this: i have a copy of win source code that has 2 projects, one will make a .exe file after running, and during it building, it will use the second project's exe file, just like making .cab file. After that the first project will make the third exe in specified direcroty.The third exe is what we want.

Now i want to do the same work in mac os, but i don't know how to do it ?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.