<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 6, 2020, at 1:42 PM, Jason Liu <<a href="mailto:jasonliu@umich.edu" class="">jasonliu@umich.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">All that said, one more question.  As I now understand it, the idea is 
to download a binary-only installer (from the publisher’s web site) and 
launch it.  Someone still has to answer any and all dialogs that such 
installers always present.  So, it fact, the administrator has to sit at
 the machine and click “OK” ad nauseam.  Previously, I thought we were 
going to create a new binary image that would avoid such tedium.  Do I 
have this right?  Or is there some scripting trickery wrapped around the
 installer?</blockquote><div class=""><br class=""></div><div class="">The situation of dialog boxes and clicking "OK" ad nauseam is, in most cases, completely unnecessary. Installing binary-only installers (.dmg or .pkg) can be accomplished exclusively using the command line:</div><div class=""><br class=""></div><div class="">If the installer is a .dmg:</div><div class=""><br class=""></div><div class=""># hdiutil mount software-title.dmg</div><div class=""><br class=""></div><div class="">Once the DMG is mounted, if it's just the app, then</div><div class=""><br class=""></div><div class=""># cp -R "/Volumes/Mounted DMG/Software Title.app" /Applications</div><div class=""><br class=""></div><div class="">on the other hand, if the contents are a .pkg, then</div><div class=""><br class=""></div><div class=""># /usr/bin/installer -package "/Volumes/Mounted DMG/Software Installer.pkg" -target "/Volumes/Macintosh HD"</div><div class=""><br class=""></div><div class="">Finally, unmount the DMG:</div><div class=""><br class=""></div><div class=""># hdiutil unmount "/Volumes/Mounted DMG"</div><div class=""><br class=""></div><div class="">For the vast majority of cases, no manual user intervention is necessary. In fact, software deployment tools such as Jamf/Casper, Munki, and even Apple MDM, use this method to perform non-interactive remote installations of Mac software.<br class=""></div><div class=""> </div><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class="">— </div></div></div></div></div></div></blockquote><div><br class=""></div><div><br class=""></div>MacPorts can do much of this automatically, I belive:</div><div><br class=""></div><div><<a href="https://github.com/macports/macports-base/blob/0b8b970a857c611a3c8aea8385b3ea28ce38e2c9/src/port1.0/portextract.tcl#L117" class="">https://github.com/macports/macports-base/blob/0b8b970a857c611a3c8aea8385b3ea28ce38e2c9/src/port1.0/portextract.tcl#L117</a>></div><div><br class=""></div><div><br class=""><br class=""></div><div><br class=""></div>Ken</body></html>