8

Is there a way, as soon as a .dmg is mounted, without any user-action the contained .app launches, just like windows has autorun.ini?

1
  • 4
    Running apps from a DMG is bad practice, I would suggest. It doesn't offer any advantages, and at best means that the app 'disappears' if the dmg is unmounted, e.g. after reboot.
    – benwiggy
    Jun 22 at 11:34

1 Answer 1

24

No.

This in its most general application would be an egregious security risk. There is a provision to display a license prompt at mount time, however.

btw, Windows auto-run [as opposed to auto-play] has been disabled for many years [since Windows 7] for similar reasons.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .