Dell World User Forum
UFIL511: Mac Application Packaging
Jeffrey J Hoover, Senior Trainer
Michael Klocek, Learning Development
Dell WorldUser Forum
Dell World User Forum
Agenda
• Installer Types
• Oracle Java
• Custom Packages
• Google Chrome
• Microsoft Office
Dell World User Forum
APPs, PKGs, & DMGs
• APP – Application Bundle
– Actually a directory
• PKG – Installer Package
– Actually a Directory
• DMG – Disk Image
– Single file, like an ISO
Dell World User Forum
Managed Install – Oracle Java
• Find Software Record [Inventory | Software]
• Attach appropriate payload
• Create Managed Install [Distribution | Managed Install]
– Target Smart Label
Dell World User Forum
Oracle Java – Find in Inventory
• It doesn’t show in inventory!
– Although the Install Manager does.
• It’s an Internet Plug-in, not an APP
• Installs into:
– /Library/Internet Plugins/JavaAppletPlugin.plugin
– /Library/PreferencePanes/JavaControlPanel.prefPane
• Both of these are more complicated than that!
– The Plugin has two different plist files for Enabled vs. Disabled
– The PreferencePane is an alias points to an embedded part of the Plugin.
Dell World User Forum
Oracle Java – Find in Inventory
• So we use Custom Inventory for a particular version
• Find the right value in plist
PlistValueEquals(/Library/PreferencePanes/JavaAppletPlugin.plugin/Contents/Enabled.plist, CFBundleVersion, TEXT, 1.7.67.01) OR
PlistValueEquals(/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Disabled.plist, CFBundleVersion, TEXT, 1.7.67.01)
Dell World User Forum
Determining Java Version
• Create script to determine version– Load onto Macs
• Custom Inventory to pull version
if [ -f "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Enabled.plist" ] ; then VERSION=$( defaults read "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Enabled.plist" CFBundleVersion )elseif [ -f "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Disabled.plist" ]
VERSION="Not installed."fiecho "$VERSION"
ShellCommandTextReturn(/bin/bash /usr/local/bin/java_ver.sh)
Dell World User Forum
Oracle Java – Attach Payload
• At least this part looks right…
• Mount DMG,
• Run Installer against the PKG
Dell World User Forum
Custom Packages
• Sometimes what you are installing is none of the above!
– Groups of different scripts
– Script execution order/requirements
– Application Bundle plus extra files or post-flight script
• Packaging Tools Examples
– Packages
– AutoPKG/AutoPkgr
– Payload Free Package Creator
Dell World User Forum
Packages
• Free PKG builder
• http://s.sudre.free.fr/Software/Packages/about.html
Dell World User Forum
Packages
• Easily handles several options
– App Bundles converted to PKG
– App Bundles and files
– Running Multiple PKGs
– Pre-Flight & Post-Flight Scripts
• Creates PKG files that can do more. Use them with Managed Installs, Post Installation Tasks, etc.
Dell World User Forum
AutoPkg / AutoPkgr
• AutoPkg
– Command line utility with recipes from GitHub
– https://github.com/autopkg/autopkg/releases/latest
– https://github.com/autopkg/autopkg/wiki/Getting-Started
– Gathers PKG files,
• AutoPkgr
– https://github.com/lindegroup/autopkgr
– GUI front end to AutoPkg
– Covers recipe subscriptions
Dell World User Forum
Microsoft Office
• Office 2011 is a MPKG
• Two choices for configuration:
– Modify the Distribution file within the PKG
› Allows a change to the default GUI
– Add a Choices.xml to toggle the components in the PKG
› Based on the defaults in the PKG, virtually clicks them
• Ref: http://www.officeformachelp.com/office/administration/deployment/command-line/
Dell World User Forum
Microsoft Office
• Any way you install it, it has a bunch of components. The challenge is to understand how to modify the availability of the components.
• Three key attributes– Selected (initial state)
– Enabled (available for selection/deselection)
– Visible
Dell World User Forum
Microsoft Office
‘Distribution’ is a file that exists
within the installer package. This
file can be modified to change the
default behaviors of the installer.
Dell World User Forum
Microsoft Office
Distribution file
• Selected
start_selected=“true”
• Enabled
start_enabled=“true”
• Visible
start_visible=“true”
Dell World User Forum
Microsoft Office - ShowChoicesXML
<dict>
<key>attributeSetting</key>
<true/>
<key>choiceAttribute</key>
<string>visible</string>
<key>choiceIdentifier</key>
<string>outlook</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>1</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>outlook</string>
</dict>
Dell World User Forum
Microsoft Office - ChoicesXML
<array>
<string>outlook</string>
<string>messenger</string>
<string>proofingtools</string>
<string>english</string>
<string>dock</string>
</array>
Dell World User Forum
MS Office - Installer
• Man installer
• Get existing choices:
installer –pkg Office\ Installer.pkg –showChoiceChangesXML > msofficeChoices1.xml
• Apply ChoicesChanges
installer –pkg Office\ Installer.pkg –applyChoiceChangesXMLmsofficeChoices1.xml –target /
Dell World User Forum
KACE Support Portal Migrating to Dell Software Support Portal
• Starting in November, all KACE
Support Portal material will be migrated
to the Dell Software Support Portal
• All service requests will be submitted
online or by phone
• Same great content
– Knowledge base articles
– Video tutorials
– Product documentation
– JumpStart training
• Check out the Support Portal Getting
Started videos
Top Related