Skip to content

Instantly share code, notes, and snippets.

@apizz
Created December 6, 2018 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apizz/e1312d15f2f6e976e687d558bb75d7a1 to your computer and use it in GitHub Desktop.
Save apizz/e1312d15f2f6e976e687d558bb75d7a1 to your computer and use it in GitHub Desktop.
For uninstalling Wacom driver software before installing a newer version
#!/bin/sh
OLD_APP="/Applications/Pen Tablet.localized/Pen Tablet Utility.app"
APP="/Applications/Wacom Tablet.localized/Wacom Tablet Utility.app"
OLD_EXE="${OLD_APP}/Contents/Resources/uninstall.pl"
EXE="${APP}/Contents/MacOS/Wacom Tablet Utility"
# If this app is installing, munki has detected we have a newer version. Therefore, if Wacom Tablet Utility already exists then we need to uninstall first
if [ -d "$OLD_APP" ]; then
sudo "$OLD_EXE"
fi
if [ -d "$APP" ]; then
sudo "$EXE" --uninstall
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment