Installing dmg->.pkg thru programming

Discussion in 'Mac Programming' started by satyam90, Nov 4, 2008.

  1. satyam90 macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #1
    I am using Obj C with Cocoa
    I want to installa package which is present in dmg thru programming.
    For Example: I have a dmg "MyDmg.dmg" which consists of "MyPackage.pkg"
    Note: MyPackage.pkg is made using package maker and MyDmg.dmg by command "hdiutil"
    I want to write a small application which will prompt user to select the dmg. If the dmg inturn consists of any pkg file, it must be installed.
    I did upto selection of dmg, but I am not knowing whcih class I have to use for installing it? Also please clarify me when a dmg is double clicked, a new volume is seen.....How to get this volume name?
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    So you want to make an installer to install an installer? Are you going to make another installer to install the installer that will install the installer later on as well. Maybe make another installer to install the installer that will install the installer to finally install the installer that will install the installer?

    Seems like a rather pointless exercise to me. What is the point?
     
  3. satyam90 thread starter macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #3
    My intention is not make another installer. I want to incorporate an option in my application to install a dmg where user specifies the path of dmg on his Mac.
     
  4. satyam90 thread starter macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #4
    The best example I can give what I am expecting is: Installing Latest "Safari" (already downloaded) DMG using ObjC + Cocoa Programming.
    One can see a pkg inside dmg of safari.
     

Share This Page