From 303e49a92e027b80ed68d2175e9304e95e441c92 Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Tue, 28 Sep 2021 14:33:00 +0100 Subject: [PATCH] Update microsoft-apps.sh --- microsoft-apps.sh | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/microsoft-apps.sh b/microsoft-apps.sh index 05e37e1..3d56e23 100644 --- a/microsoft-apps.sh +++ b/microsoft-apps.sh @@ -5,7 +5,6 @@ # Usage : Install Office365 applications in the last version available on macadmins site. # Parameters : # full : Install the full suite -# full-oc : Install the full suite but open the Console Logs # word : Install Word # excel : Install Excel # powerpoint : Install Powerpoint @@ -138,31 +137,52 @@ echo "Latest version : ${LATEST_VERSION}" >> ${logfile} for param in "$@"; do case $param in word) - install_software "com.microsoft.word.standalone.365" "Word" "/Applications/Microsoft Word.app" + install_software "com.microsoft.word.standalone.365" "Word" "/Applications/Microsoft Word.app" "noconsole" ;; excel) - install_software "com.microsoft.excel.standalone.365" "Excel" "/Applications/Microsoft Excel.app" + install_software "com.microsoft.excel.standalone.365" "Excel" "/Applications/Microsoft Excel.app" "noconsole" ;; powerpoint) - install_software "com.microsoft.powerpoint.standalone.365" "Powerpoint" "/Applications/Microsoft PowerPoint.app" + install_software "com.microsoft.powerpoint.standalone.365" "Powerpoint" "/Applications/Microsoft PowerPoint.app" "noconsole" ;; onedrive) - install_software "com.microsoft.onedrive.standalone" "OneDrive" "/Applications/OneDrive.app" + install_software "com.microsoft.onedrive.standalone" "OneDrive" "/Applications/OneDrive.app" "noconsole" ;; onenote) - install_software "com.microsoft.onenote.standalone.365" "OneNote" "/Applications/Microsoft OneNote.app" + install_software "com.microsoft.onenote.standalone.365" "OneNote" "/Applications/Microsoft OneNote.app" "noconsole" ;; outlook) - install_software "com.microsoft.outlook.standalone.365" "Outlook" "/Applications/Microsoft Outlook.app" + install_software "com.microsoft.outlook.standalone.365" "Outlook" "/Applications/Microsoft Outlook.app" "noconsole" ;; - teams) - install_software "com.microsoft.teams.standalone" "Teams" "/Applications/Microsoft Teams.app" - ;; + teams) + install_software "com.microsoft.teams.standalone" "Teams" "/Applications/Microsoft Teams.app" "noconsole" + ;; full) - install_software "com.microsoft.office.suite.365" "Office365" "SUITE" + install_software "com.microsoft.office.suite.365" "Office365" "SUITE" "noconsole" ;; + word-oc) + install_software "com.microsoft.word.standalone.365" "Word" "/Applications/Microsoft Word.app" "openconsole" + ;; + excel-oc) + install_software "com.microsoft.excel.standalone.365" "Excel" "/Applications/Microsoft Excel.app" "openconsole" + ;; + powerpoint-oc) + install_software "com.microsoft.powerpoint.standalone.365" "Powerpoint" "/Applications/Microsoft PowerPoint.app" "openconsole" + ;; + onedrive-oc) + install_software "com.microsoft.onedrive.standalone" "OneDrive" "/Applications/OneDrive.app" "openconsole" + ;; + onenote-oc) + install_software "com.microsoft.onenote.standalone.365" "OneNote" "/Applications/Microsoft OneNote.app" "openconsole" + ;; + outlook-oc) + install_software "com.microsoft.outlook.standalone.365" "Outlook" "/Applications/Microsoft Outlook.app" "openconsole" + ;; + teams-oc) + install_software "com.microsoft.teams.standalone" "Teams" "/Applications/Microsoft Teams.app" "openconsole" + ;; full-oc) - install_software "com.microsoft.office.suite.365" "Office365" "SUITE" "openconsole" + install_software "com.microsoft.office.suite.365" "Office365" "SUITE" "openconsole" ;; *) echo "unknown parameter"