4.13.2012

Deploy PKGs Silently

Just getting ready to roll my Mac Office 2011 silent installer. Run the following the check for choices.

installer -package "Office Installer.mpkg" -showChoicesXML | grep -A 1 choiceIdentifier > /PATHTOCHOICES/mychoices.xml

(Creating the Choices file is as simple as including the desired choiceIdentifiers in an array in an XML file).

Verify the choices:
installer -package "Office Installer.mpkg" -showChoicesAfterApplyingChangesXML /PATHTOCHOICES/mychoices.xml
Applying the choices is as simple as:
installer -package "/Office Installer.mpkg" -target / -applyChoiceChangesXML /PATHTOCHOICES/mychoices.xml