Posted on 08-11-2015 07:19 AM
Not sure if they did this in 2011. Just thought this was interesting:
Do a pkgutil --expand /path/to/Office2016installer.pkg /new/path/to/extract/to
Posted on 08-19-2015 09:42 AM
I saw that too. They simplified the hell out of their install scripts.
Most of the stuff doesn't do anything but check for valid OS versions and then the licensing model.
Have you noticed an inconsistencies when using dockutil during postinstall scripts? Sometimes it adds everything, other times it adds just a couple of the items. For instance, I used this code to remove existing office dock icons and re-add the 2016 version. Only Outlook was added.
killall cfprefsd
/usr/bin/dockutil --remove 'Microsoft Excel' --allhomes --no-restart
/usr/bin/dockutil --remove 'Microsoft Outlook' --allhomes --no-restart
/usr/bin/dockutil --remove 'Microsoft PowerPoint' --allhomes --no-restart
/usr/bin/dockutil --remove 'Microsoft Word' --allhomes --no-restart
/usr/bin/dockutil --add /Applications/Microsoft Excel.app --allhomes --no-restart
/usr/bin/dockutil --add /Applications/Microsoft Outlook.app --allhomes --no-restart
/usr/bin/dockutil --add /Applications/Microsoft PowerPoint.app --allhomes --no-restart
/usr/bin/dockutil --add /Applications/Microsoft Word.app --allhomes --no-restart
killall Dock
Posted on 08-27-2015 04:22 PM
Please put a delay in between command and see:
e.g.-
/usr/bin/dockutil --add /Applications/Microsoft Excel.app --allhomes --no-restart
/bin/sleep 5
/usr/bin/dockutil --add /Applications/Microsoft Outlook.app --allhomes --no-restart
/bin/sleep 5
/usr/bin/dockutil --add /Applications/Microsoft PowerPoint.app --allhomes --no-restart
/bin/sleep 5
/usr/bin/dockutil --add /Applications/Microsoft Word.app --allhomes --no-restart
/bin/sleep 5
killall Dock
Posted on 09-18-2015 10:19 AM
That delay is key and I'm surprised I see so many others not adding it to the script. Without that delay not all of the icons get added to the dock. Seems terribly sporadic.