[For those that don’t know what InstaDMG is you should really check it out if you manage Macintosh systems. It’s at www.afp548.com and is really really helpful.]
So I included the latest iTunes and noticed my DMG was still mounted when all was done. “lsof” is my friend and showed me there were two things in use that should not have been.
- /Volumes/OS-Build-08-03-15/Applications/iTunes.app/Contents/Resources/ iTunesHelper.app/Contents/MacOS/iTunesHelper
- /Volumes/OS-Build-08-03-15/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/ MobileDevice
I knew the framework was loaded from the binary since when I killed the iTunesHelper process the framework let go. Then I found this…
- /iTunes.mpkg/Contents/Resources/iTunesX.pkg/Contents/Resources/ postflight_actions/runiTunesHelper
The above is the dopey script that Apple made that simply launches the helper if a user is logged in. Why not also test if the target volume is the booted volume? I don’t know. Seems a little lame to me. For our purposes just delete this file. For InstaDMG there is no need to kill the current helper and certainly no need to launch the helper inside the DMG you are building.