Skip to content

Instantly share code, notes, and snippets.

@erikng
Created October 1, 2015 15:34
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikng/7cede5be1c0ae2f85435 to your computer and use it in GitHub Desktop.
Save erikng/7cede5be1c0ae2f85435 to your computer and use it in GitHub Desktop.
Office 2016 LS register
#!/bin/bash
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
@ehemmete
Copy link

ehemmete commented May 11, 2016

Edit - Never mind, this works great with 15.22 and 10.11.4. I was only doing the first if, as I assumed recursive (-R) meant fully recursive...


Is this still working for you with Office 2016 15.22 and OS X 10.11.4? I have tried this and still get the popup when I click Check for Updates in one of the apps for the first time.

@kevinmcox
Copy link

MAU 4.15 renamed Microsoft AU Daemon.app to Microsoft Update Assistant.app so the script will need to be updated starting with that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment