Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.