Something along the lines of hdiutil create -srcfolder mydirtodmg mydmg.dmgĪs for the custom license agreement, you should look into the tool included with the Developer Tools 'PackageMaker' - it's pretty self-explanatory. You can also script the creation of DMGs using the command hdiutil. I would recommend iDMG, which makes things a bit less tedious. To do things like setting a background image can be a bit convoluted (You basically add the background image to the DMG, set the windows properties to use that image, using the command line you move the background image from background.png to. Make sure 'Compressed' is checked, then set where you want to save the created DMG.Go to File > New > New Image from Folder ( Cmd + Shift + N).Open Disk Utility (It's in /Applications/Utilities/).Make a folder with the files your DMG will contain.