mirror of
https://github.com/fleetdm/fleet
synced 2026-04-27 16:37:55 +00:00
for #22774 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
30 lines
740 B
Bash
30 lines
740 B
Bash
#!/bin/sh
|
|
|
|
# variables
|
|
APPDIR="/Applications/"
|
|
TMPDIR=$(dirname "$(realpath $INSTALLER_PATH)")
|
|
|
|
# install pkg files
|
|
|
|
CHOICE_XML=$(mktemp /tmp/choice_xml_XXX)
|
|
|
|
cat << EOF > "$CHOICE_XML"
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<array>
|
|
<dict>
|
|
<key>attributeSetting</key>
|
|
<integer>0</integer>
|
|
<key>choiceAttribute</key>
|
|
<string>selected</string>
|
|
<key>choiceIdentifier</key>
|
|
<string>com.microsoft.autoupdate</string>
|
|
</dict>
|
|
</array>
|
|
</plist>
|
|
|
|
EOF
|
|
|
|
sudo installer -pkg "$TMPDIR"/Microsoft_Excel_16.88.24081116_Installer.pkg -target / -applyChoiceChangesXML "$CHOICE_XML"
|
|
|