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 bsuggett
Downloads: 392


As outlined in this article....


Now the JSS appears to a respect exit codes (Yay!)... Downside is the existing installPKGfromDMG script appears not to return/pass an exit code if a PKG fails to install (Boo!). This modified version of installPKGfromDMG addresses... * Supplying parameter 5 with "YES" without quotes and case sensitive allows PKG exit code to be bypassed and returns a forced exit code of 0 to the JSS (if needed). * If a previous DMG mount is detected, will attempt unmount * If a previous shadow file is detected, will delete it before attempting mounting DMG * Passes and outputs PKG exit code to log * Passes and outputs exit codes to JSS


Generating Preview...