mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-04 14:23:06 +01:00
add all msupdate apps
This commit is contained in:
@@ -277,24 +277,32 @@ case $identifier in
|
|||||||
expectedTeamID="UBF8T346G9"
|
expectedTeamID="UBF8T346G9"
|
||||||
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "Microsoft OneDrive" )
|
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "Microsoft OneDrive" )
|
||||||
;;
|
;;
|
||||||
|
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
|
||||||
|
updateToolArguments=( --install )
|
||||||
microsoftofficebusinesspro)
|
microsoftofficebusinesspro)
|
||||||
name="MicrosoftOfficeBusinessPro"
|
name="MicrosoftOfficeBusinessPro"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=2009112"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=2009112"
|
||||||
expectedTeamID="UBF8T346G9"
|
expectedTeamID="UBF8T346G9"
|
||||||
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "Microsoft OneDrive" "Teams")
|
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "Microsoft OneDrive" "Teams")
|
||||||
|
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
|
||||||
|
updateToolArguments=( --install )
|
||||||
;;
|
;;
|
||||||
microsoftedgeconsumerstable)
|
microsoftedgeconsumerstable)
|
||||||
name="Microsoft Edge"
|
name="Microsoft Edge"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=2069148"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=2069148"
|
||||||
expectedTeamID="UBF8T346G9"
|
expectedTeamID="UBF8T346G9"
|
||||||
|
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
|
||||||
|
updateToolArguments=( --install --apps EDGE01 )
|
||||||
;;
|
;;
|
||||||
microsoftcompanyportal)
|
microsoftcompanyportal)
|
||||||
name="Company Portal"
|
name="Company Portal"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=869655"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=869655"
|
||||||
expectedTeamID="UBF8T346G9"
|
expectedTeamID="UBF8T346G9"
|
||||||
|
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
|
||||||
|
updateToolArguments=( --install --apps IMCP01 )
|
||||||
;;
|
;;
|
||||||
microsoftskypeforbusiness)
|
microsoftskypeforbusiness)
|
||||||
name="Skype for Business"
|
name="Skype for Business"
|
||||||
@@ -314,7 +322,7 @@ case $identifier in
|
|||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=869428"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=869428"
|
||||||
expectedTeamID="UBF8T346G9"
|
expectedTeamID="UBF8T346G9"
|
||||||
blockingProcesses=( Teams "Microsoft Teams Helper" )
|
blockingProcesses=( Teams "Microsoft Teams Helper" )
|
||||||
updateTool="/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate"
|
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
|
||||||
updateToolArguments=( --install --apps TEAM01 )
|
updateToolArguments=( --install --apps TEAM01 )
|
||||||
;;
|
;;
|
||||||
microsoftautoupdate)
|
microsoftautoupdate)
|
||||||
@@ -334,7 +342,7 @@ case $identifier in
|
|||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=525134"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=525134"
|
||||||
teamID="UBF8T346G9"
|
teamID="UBF8T346G9"
|
||||||
updateTool="/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate"
|
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
|
||||||
updateToolArguments=( --install --apps MSWD2019 )
|
updateToolArguments=( --install --apps MSWD2019 )
|
||||||
;;
|
;;
|
||||||
microsoftsharepointplugin)
|
microsoftsharepointplugin)
|
||||||
@@ -606,9 +614,9 @@ runUpdateTool() {
|
|||||||
if [[ -x $updateTool ]]; then
|
if [[ -x $updateTool ]]; then
|
||||||
echo "running $updateTool $updateToolArguments"
|
echo "running $updateTool $updateToolArguments"
|
||||||
if [[ -n $updateToolRunAsCurrentUser ]]; then
|
if [[ -n $updateToolRunAsCurrentUser ]]; then
|
||||||
runAsUser $updateTool "${updateToolArguments}"
|
runAsUser $updateTool ${updateToolArguments}
|
||||||
else
|
else
|
||||||
$updateTool "${updateToolArguments}"
|
$updateTool ${updateToolArguments}
|
||||||
fi
|
fi
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
cleanupAndExit 15 "Error running $updateTool"
|
cleanupAndExit 15 "Error running $updateTool"
|
||||||
@@ -686,7 +694,7 @@ if ! cd "$tmpDir"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check if this is an Update
|
# check if this is an Update
|
||||||
if [[ $(mdfind -count -name "$appName") -gt 0 ]]; then
|
if [[ $(mdfind -count "kMDItemFSName == '$appName' && kMDItemKind == 'Application'") -gt 0 ]]; then
|
||||||
# get all apps matching name
|
# get all apps matching name
|
||||||
applist=$(mdfind "kMDItemFSName == '$appName' && kMDItemKind == 'Application'")
|
applist=$(mdfind "kMDItemFSName == '$appName' && kMDItemKind == 'Application'")
|
||||||
appPathArray=( ${(f)applist} )
|
appPathArray=( ${(f)applist} )
|
||||||
@@ -706,7 +714,7 @@ if [[ $(mdfind -count -name "$appName") -gt 0 ]]; then
|
|||||||
echo "could not determine location of $appName"
|
echo "could not determine location of $appName"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "could not find $appName"s
|
echo "could not find $appName"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# when user is logged in, and app is running, prompt user to quit app
|
# when user is logged in, and app is running, prompt user to quit app
|
||||||
|
|||||||
Reference in New Issue
Block a user