Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.
Posted: by clrlmiller
Downloads: 205
Download

Synopsis

I've been successfully making all the Adobe CC Applications available through our Self Service for the past couple of years. While the Adobe Packager Utility is fairly simple, it takes quite a while to create the individual Application Package installers.

Our Adobe support recommends wrapping each of the Adobe Packages into a .DMG file, loading into Casper Admin, use a policy and specify 'Cache' for the .DMG and use an install-from-dmg script afterwards to mount the .DMG and install the .PKG inside. Found here: https://www.jamf.com/jamf-nation/third-party-products/files/547/installpkgfromdmg-sh-install-a-pkg-wrapped-inside-a-dmg

I got sick of the mind numbing task of wrapping each .PKG into a .DMG, so I cobbled together a short script to do it for me.

Description

Drop this script into a folder containing the .PKG files needing wrapped into .DMG files. Open Terminal, move to the folder containing your PKG files and invoke the script. This should make the .DMG wrapping task automatic and allow for more interesting work to be done. #!/bin/sh ################################################################# # Make .DMGs from a collection of .PKGs # By Christopher Miller # For ITSD-ISS of JHU-APL # Dated: 2016-12-14, LastMod: 2016-12-15 # Drop this Script into the Package collection folder # This should avoid non .PKG files ################################################################# ################################################################# # Build a list of PKGs to be worked through # Avoid Package File Names with spaces, this can break the list ################################################################# PKGFileList=$(ls | grep .pkg) # Invoke Hard Disk Image Utility (hdiutil) to process through list of PKGs for i in $PKGFileList ; do echo "Now Wrapping $i" hdiutil create -fs HFS+ -srcfolder "$i" "$i".dmg ; echo done # Signal when done. echo "All Done!" exit 0

Preview

Generating Preview...