How to make file like .cab file in windows?

Discussion in 'Mac Programming' started by MayPeng, Dec 30, 2010.

  1. MayPeng macrumors member

    Nov 21, 2010
    In mac os x , how to create .cab file just like windows os .
  2. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
  3. jiminaus, Dec 30, 2010
    Last edited: Dec 30, 2010

    jiminaus macrumors 65816


    Dec 16, 2010
    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

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

    $ 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:

    usage: lcab [options] inputfiles
    lcab will create a Cabinet File from inputfiles.
    Inputfiles can also be directories together with option -r.
         -r        loop recursive through directories
         -n        create files without pathnames
         -q        be quiet!
    lcab v1.0b11 (2003) by Rien (
  4. Sydde macrumors 68020


    Aug 17, 2009
    Perhaps something like libmspack? If the LGPL bit is a problem for you, you could just create a framework to link it into.
  5. Sander macrumors 6502

    Apr 24, 2008
    Or maybe the question was too specific, and you really want to know how to make an installer on the Mac..? Just checking...
  6. MayPeng thread starter macrumors member

    Nov 21, 2010
    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 ?

Share This Page