Microsoft AuUpdate update packages could not be downloaded

cbd4s
Contributor II

Is anyone experiencing this problem? Only noticed today.

macOS 10.14.6
Microsoft AutoUpdate 4.14 (19081202)
One or more update packages could not be downloaded. Please try again.
These application were not updated:
Word, Outlook, PowerPoint, OneNote, Excel
Checked the MSau_* folder is getting created under /private/var/folder
Checked on multiple machines

6 REPLIES 6

marktaylor
Contributor

+1 we are seeing this too

CorpIT_eB
Contributor II

@ccsben

I been using the following script for some time now and it was working very well, until I relived it following your post. Apart from getting 0 exit on the script no errors are thrown but it has no longer updated the MSO suite. It looks like it stopped working right around version 16.27.19071500 which is a real disappointment because now I have to figure out another way of getting this suite updated.

#!/bin/sh
#Create MAU trust Launch Agent and the Script using scripting method
/bin/cat << 'EOF' > "/Library/LaunchAgents/com.myorg.registermau.plist"
<?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">
<dict>
     <key>Label</key>
     <string>com.myorg.registermau</string>
     <key>ProgramArguments</key>
     <array>
          <string>/usr/local/bin/RegisterMAU.sh</string>
     </array>
     <key>RunAtLoad</key>
     <true/>
</dict>
</plist>
EOF

/bin/cat << 'EOF' > "/usr/local/bin/RegisterMAU.sh"
#!/bin/sh

###############################################################################################################
#
# Register MAU using a Launch Agent (/Library/LaunchAgents/com.myorg.registermau.plist)
#
###############################################################################################################

###########
# Functions
###########

# Check if com.myorg.MAUtrustDone.plist file exists and if yes don't re-register
checkMAUtrustDone() {
     if [ -f $HOME/Library/Preferences/com.myorg.MAUtrustDone.plist ] ; then
        exit 0
    fi
}

# re-register and create a file called com.myorg.MAUtrustDone.plist
trustMAU() {
if [ -e "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app" ]; then
     /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -R -f -trusted "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app"
fi

if [ -e "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AU Daemon.app" ]; then
     /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -R -f -trusted "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AU Daemon.app"
fi

# Add office apps to com.microsoft.autoupdate2 plist
# Taken from Office Postinstall script and edited
applications="
Word.app
Excel.app
PowerPoint.app
OneNote.app
Outlook.app"

for application in $applications
do
     domain="com.microsoft.autoupdate2"
     defaults_cmd="/usr/bin/defaults"
     application_info_plist="/Applications/Microsoft $application/Contents/Info.plist"
     lcid="1033"

     if /bin/test -f "$application_info_plist"
     then
          application_bundle_signature=$($defaults_cmd read "$application_info_plist" CFBundleSignature)
          application_bundle_version=$($defaults_cmd read "$application_info_plist" CFBundleVersion)
          application_id=$(printf "%s%02s" "$application_bundle_signature" "${application_bundle_version%%.*}")
          $defaults_cmd write $domain Applications -dict-add "/Applications/Microsoft $application" "{ 'Application ID' = $application_id; LCID = $lcid ; }"
     fi
done

/usr/bin/touch $HOME/Library/Preferences/com.myorg.MAUtrustDone.plist
}

# Execute the Functions
checkMAUtrustDone
trustMAU

exit 0
EOF


# Set the correct permissions on the created files
/usr/sbin/chown -R root:wheel "/Library/LaunchAgents/com.myorg.registermau.plist"
/bin/chmod -R 644 "/Library/LaunchAgents/com.myorg.registermau.plist"

/usr/sbin/chown -R root:wheel "/usr/local/bin/RegisterMAU.sh"
/bin/chmod a+x "/usr/local/bin/RegisterMAU.sh"

# Run Once for current user as LaunchAgent will kick-in for next user onwards and we are running the initial run as root.
CurrentloggedInUser=$(/usr/bin/python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "
");')

if [ -e "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app" ]; then
     sudo -u "$CurrentloggedInUser" /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -R -f -trusted "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app"
fi

if [ -e "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AU Daemon.app" ]; then
     sudo -u "$CurrentloggedInUser" /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -R -f -trusted "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AU Daemon.app"
fi

# Add office apps to com.microsoft.autoupdate2 plist
# Taken from Office Postinstall script and edited
applications="
Word.app
Excel.app
PowerPoint.app
OneNote.app
Outlook.app"

for application in $applications
do
     domain="com.microsoft.autoupdate2"
     defaults_cmd="/usr/bin/sudo -u $CurrentloggedInUser /usr/bin/defaults"
     application_info_plist="/Applications/Microsoft $application/Contents/Info.plist"
     lcid="1033"

     if /bin/test -f "$application_info_plist"
     then
          application_bundle_signature=$($defaults_cmd read "$application_info_plist" CFBundleSignature)
          application_bundle_version=$($defaults_cmd read "$application_info_plist" CFBundleVersion)
          application_id=$(printf "%s%02s" "$application_bundle_signature" "${application_bundle_version%%.*}")
          $defaults_cmd write $domain Applications -dict-add "/Applications/Microsoft $application" "{ 'Application ID' = $application_id; LCID = $lcid ; }"
     fi
done

exit 0

jako
New Contributor

I had exactly the same problem today when trying to update, never had a problem before.

AJGaratshun
New Contributor

Yes, me too. Just got a notification that there were updates available but I am getting the same error message. My system is the same as yours: macOS Mojave 10.14.6

tnthomps
New Contributor

Having the same issue downloading / installing Word, Excel, and Powerpoint releases from 8/12. Outlook release worked fine.

BartN
New Contributor

+1 here (The Netherlands, macOS 10.14.6, Microsoft AutoUpdate 4.14 (19081202).
I first updated Microsoft AutoUpdate. Maybe that's the reason.

Bart