Skip to main content

DMG

  • October 9, 2025
  • 4 replies
  • 57 views

tdenton
Forum|alt.badge.img+11

Afternoon 

Im trying to deploy Zbrush which is dmg which has .app file wrap inside it.
I have packaged this into temp location \\private\tmp Im then running a script to install it.

Having all sorts off issue trying to get the script to mount the dmg.

Seems to work fine through terminal using 

hdiutil attach /private/tmp/MaxonZbrush.dmg

Does anyone have experience with working with DMG or any good resources.

Thanks in advance Tom

4 replies

MusicCityMac
Forum|alt.badge.img+14
  • Jamf Heroes
  • October 9, 2025

While Jamf does support deploying DMG images, the best practice is to take the app itself and not the DMG image and create a package file for it using Composer, Packages, or some other tool.


PaulHazelden
Forum|alt.badge.img+12
  • Jamf Heroes
  • October 9, 2025

Search Maxon’s site for Silent install of apps.
https://support.maxon.net/hc/en-us/articles/4687177301788-Scripted-Silent-Install-Instructions
You can simply send the Installer app to the Mac and then run a script to install Zbrush from the installer app. You can do the same with MaxonOne app, and others. You can even script the setup of the license.

I send the Installer app to a known location, use Composer to put it there for you. Then run the scripts as per their instructions. Set the script to run “After” in the policy and it will wait for the pkg you make in Composer to install. Other packaging tools are available.

I do not package the dmg. I extract the app and package that.


Shane Bucher
Forum|alt.badge.img
  • New Contributor
  • October 14, 2025

What we do is,

  1. Upload the package in Jamf as that dmg file
  2. Create new script
    1. #!/bin/bash

      # Check if dmg has been installed cached
      if [ -a /Library/Application\ Support/JAMF/Waiting\ Room/dmgname.dmg ]; then

      # Attach the Disk Image
          hdiutil attach /Library/Application\ Support/JAMF/Waiting\ Room/dmgname.dmg

      # Run the installer
          /Volumes/dmgpathtoinstall

      # Wait for the install to finish
          sleep 60

      # Unmount the disk image
          hdiutil detach /Volumes/dmgmountpoint

      # Wait for the unmount to complete
          sleep 25

      # Delete the disk image
          rm -R /Library/Application\ Support/JAMF/Waiting\ Room/dmgname.dmg

      else

      echo "dmgname NOT Present"
      exit 1

      fi
      exit 0

  3. In Policies Create new Policy
  4. Add package to policy
  5. Set it to Cache
  6. Add Script
  7. Set it to run after

 

Let me know if this works. With the installation there is usually a “script” in the dmg contents that you can point, to install. such as “Sdcust”


Forum|alt.badge.img+8
  • Valued Contributor
  • October 14, 2025

install quickpkg from here and never deal with .dmgs again