Automating installers in .dmg files on macOS

Skip to end of metadata
Go to start of metadata

To automate an installer contained in a .dmg file the .dmg file must first be mounted, which can be achieved by using macOS's open command line tool.

If installing the application (at the desired path) requires special privileges ("administrator", "sudo", "elevated"), Squish should be started with respective privilege, too to avoid any problems.

Here is an example that demonstrates mounting a .dmg file and starting the contained installer:
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.