Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How I make a dmg installer that will automatically open after download?

Tags:

macos

dmg

I have seen some dmg's which not only mounts after download but also copies the installer in the download folder and open the installer in Installer Application.

I don't know how to do it?

Can anyone help?

like image 860
Raiyan Kabir Avatar asked Mar 30 '11 19:03

Raiyan Kabir


People also ask

Can DMG file be opened on Windows?

Windows can open a DMG file with any compression/decompression program, such as the best free zip and unzip programs that support the format. If you have trouble opening DMG files by double-clicking them, even if you have PeaZip or 7-Zip installed, try to right-click the DMG file and use the context menu.


1 Answers

I haven't seen automatically opening dmg files, but it's possible to make folder open automatically after user mounts the dmg file.

Once you have created the dmg file, mount it and then issue following command:

bless --folder /Volumes/NAME --openfolder /Volumes/DIRECTORY

The NAME is your the mounted folder name and DIRECTORY is the directory that you wish to open automatically, often NAME and DIRECTORY are the same.

like image 103
Atte Kotiranta Avatar answered Oct 01 '22 03:10

Atte Kotiranta