53 lines
1.8 KiB
Bash
53 lines
1.8 KiB
Bash
#!/bin/bash
|
|
|
|
##########################################################################
|
|
# Shellscript : Microsoft Office installieren
|
|
#
|
|
#
|
|
# Autor : Andreas Vogel, macenterprise gmbh
|
|
# Quelle :
|
|
# Copyright :
|
|
##########################################################################
|
|
|
|
# Anmerkung:
|
|
# das komplette Paket kann hier (https://macadmins.software) geladen werden
|
|
# mit der Datei "de.ing.germany.microsoft_office_choices.xml" werden bestimmte
|
|
# Bestandteile bei der Installation ausgeschlossen
|
|
|
|
# Variabeln
|
|
OFFICE=/Library/Application\ Support/JAMF/Waiting\ Room/Microsoft_Office_16.25.19051201_Installer_office_2019.pkg
|
|
|
|
LIC=/Library/Application\ Support/JAMF/Waiting\ Room/Microsoft_Office_2019_VL_Serializer.pkg
|
|
|
|
XML=/.comdirect/de.comdirect.office_choices.xml
|
|
|
|
echo ""
|
|
echo "Installation Microsoft Office gestartet ..."
|
|
|
|
# Software installieren
|
|
/usr/sbin/installer -pkg $OFFICE -applyChoiceChangesXML $XML -allowUntrusted -target /
|
|
|
|
echo ""
|
|
echo "Installation beendet"
|
|
|
|
# Lizenz installieren
|
|
/usr/sbin/installer -pkg $LIC
|
|
echo ""
|
|
echo "Lizenz installiert"
|
|
|
|
# "First Run" Nachrichten unterdrücken
|
|
# Microsoft Word
|
|
defaults delete com.microsoft.Word kSubUIAppCompletedFirstRunSetup1507
|
|
defaults write /Library/Preferences/com.microsoft.Word kSubUIAppCompletedFirstRunSetup1507 -bool true
|
|
|
|
# Microsoft Excel
|
|
defaults delete com.microsoft.Excel kSubUIAppCompletedFirstRunSetup1507
|
|
defaults write /Library/Preferences/com.microsoft.Excel kSubUIAppCompletedFirstRunSetup1507 -bool true
|
|
|
|
# Microsoft PowerPoint
|
|
defaults delete com.microsoft.PowerPoint kSubUIAppCompletedFirstRunSetup1507
|
|
defaults write /Library/Preferences/com.microsoft.PowerPoint kSubUIAppCompletedFirstRunSetup1507 -bool true
|
|
|
|
# "Default Save & Open" auf lokale Festplatte
|
|
/usr/bin/defaults write /Library/Preferences/com.microsoft.office DefaultsToLocalOpenSave -bool true
|