views:

49

answers:

1

Well the title says it all - couldn't find that info using DiskArbitration or FSGetVolumeInfo/GetVolumeParms...

I know that hdiutil uses a private framework called DiskImages framework, but I wouldn't want to run an external utility each time I want this info... wheres the API for this ?

Thanks.

A: 

There are a number of open source solutions to this problem. Here's one I found with a quick search: M3InstallController. It'll even take care of installing the application for the user.

Updated: Yes, I agree this isn't a packaged, targeted solution but it's based on detecting the exact situation the question describes. Taking the time to look over the code is required.

Joshua Nozzi
This has nothing to do with my question...
Yoni Shalom
Sure it does. The code to which I linked detects the very situation you described (even if it's intended for a different purpose) so it can offer to move/copy the app into the Applications folder. Therefore, it's reasonable to expect to find the answer to your question in this example, no?
Joshua Nozzi