Skip to content

Instantly share code, notes, and snippets.

@rderewianko
Created January 15, 2016 03:29
Show Gist options
  • Save rderewianko/31fb888ccf1a2ede5f06 to your computer and use it in GitHub Desktop.
Save rderewianko/31fb888ccf1a2ede5f06 to your computer and use it in GitHub Desktop.
post install that moves office 2016 into its own folder and then calls a python script
#!/bin/bash
# Determine working directory
install_dir=`dirname $0`
#Move them all into a folder like on 2011
mkdir /Applications/Microsoft\ Office\ 2016
chown root:wheel /Applications/Microsoft\ Office\ 2016
/bin/mv /Applications/Microsoft\ Outlook.app/ /Applications/Microsoft\ Office\ 2016/Microsoft\ Outlook.app/
/bin/mv /Applications/Microsoft\ PowerPoint.app/ /Applications/Microsoft\ Office\ 2016/Microsoft\ PowerPoint.app/
/bin/mv /Applications/Microsoft\ Excel.app/ /Applications/Microsoft\ Office\ 2016/Microsoft\ Excel.app/
/bin/mv /Applications/Microsoft\ Word.app/ /Applications/Microsoft\ Office\ 2016/Microsoft\ Word.app/
/bin/mv /Applications/Microsoft\ OneNote.app/ /Applications/Microsoft\ Office\ 2016/Microsoft\ OneNote.app/
#lets make that folder have a nice icon
python $install_dir"/set-image.py" $install_dir"/Blackvariant-Button-Ui-Ms-Office-2016-Office.png" /Applications/Microsoft\ Office\ 2016/
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment