Answer the question
In order to leave comments, you need to log in
MacOS: how to make the installer run automatically when mounting a dmg image?
I'm trying to make an installer for a program on a dmg image. It is necessary that when starting dmg, the installation window opens immediately. The window was installing the contents of the image in Applications and dropping the icon, plus installing the Command Line Tools dependency component over the network.
Here it is told about a certain osascript, but it seems that something is not right. As far as I understand, this thing should simply change the view of the window that always opens when mounting read only dmg due to the fact that the .DS_Store file with the changed window view was left inside the image before creation. But for some reason it doesn't work for me. In addition, there, it seems, you need to install something so that applescript can run, which is not good.
Any ideas? The solution must be a console one, the entire download-assembly of the image is done by a bash script, only adding an installer is missing.
Answer the question
In order to leave comments, you need to log in
It seems that in OS X there is no such hole as autorun.
When mounting a DMG, you can immediately show the license agreement, and when accepting it, show the contents of the DMG, but nothing more. Nothing starts automatically.
Everything that I met in terms of "installer" is just a modified finder window, with a shortcut to the Application folder, the package itself with the program and read.me files. All!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question