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

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
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?
 

Cromulent

macrumors 604
Oct 2, 2006
6,817
1,102
The Land of Hope and Glory
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?

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?
 

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
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?

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.
 

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.