How to make file like .cab file in windows?

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

  1. MayPeng macrumors member

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

    Joined:
    Aug 9, 2009
    #2
  3. jiminaus, Dec 30, 2010
    Last edited: Dec 30, 2010

    jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #3
    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)
    
     
  4. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #4
    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

    Joined:
    Apr 24, 2008
    #5
    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

    Joined:
    Nov 21, 2010
    #6
    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