-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathOffice2016_Updater.sh
More file actions
67 lines (58 loc) · 2.16 KB
/
Copy pathOffice2016_Updater.sh
File metadata and controls
67 lines (58 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#################################################
# Microsoft AutoUpdate Script
# Office 2016
# Joshua Harvey | November 2018
# josh[at]macjeezy.com
# GitHub - github.com/therealmacjeezy
# JAMFnation - therealmacjeezy
#################################################
############ Script Parameters Info #############
## 4 - Word Version (16.16.xxxxxxxx)
## 5 - Excel Version (16.16.xxxxxxxx)
## 6 - PowerPoint Version (16.16.xxxxxxxx)
## 7 - Outlook Version (16.16.xxxxxxxx)
## 8 - OneNote Version (16.16.xxxxxxxx)
##
## If a Parameter is left blank, the script will
## output "Missing <APPNAME> Version" and move on
## to the next app. Each time this script is run,
## it will always check and install (if available)
## updates for Skype for Business, MAU and Remote
## Desktop since they are the same for both versions.
#################################################
# Script Parameters to apply version control with updates
# Word
if [[ ! -z "$4" ]]; then
/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate -i -a mswd15 -v "$4"
else
echo "Missing Word Version"
fi
# Excel
if [[ ! -z "$5" ]]; then
/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate -i -a xcel15 -v "$5"
else
echo "Missing Excel Version"
fi
# PowerPoint
if [[ ! -z "$6" ]]; then
/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate -i -a ppt315 -v "$6"
else
echo "Missing PowerPoint Version"
fi
# Outlook
if [[ ! -z "$7" ]]; then
/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate -i -a opim15 -v "$7"
else
echo "Missing Outlook Version"
fi
# OneNote
if [[ ! -z "$8" ]]; then
/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate -i -a onmc15 -v "$8"
else
echo "Missing OneNote Version"
fi
# Skype for Business, MAU and Remote Desktop
# Uses the same version for both 2019 and 2016 so adding them to the update each time
/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate -i -a msfb16 msau03 msrd10
exit 0