The .dmg file is not an installer, it is a disk image file . If you want to make something available for distribution, the easiest way is to create a new folder (directory), copy all the files and folders that you want to distribute into it, and then use either OS X Disk Utility (in / Applications / Utilities) or on the hdiutil command line to create a new disk image from the contents of the folder.
Ned deily
source share