macOS Uninstaller customization

The uninstaller for macOS is excellent and works well. I'm using an MDM and custom build package to deploy/configure macOS VNC servers. It would be nice to have the ability to drop customizations into the uninstaller. I was thinking of the following updates:

uninstallCommon.sh: Add a line that checks for the existence of a file and executes if it is found. Or simply include an empty file that is always called but can be customized by the user. Example:
test -f "$thisDir/customUpdate.sh" && . "$thisDir/customUpdate.sh"

 

uninstaller.sh: Same suggestion as above. Either test for a custom uninstaller file and execute if found or just include a blank file that can be customized. Example:
test -f "$thisDir/customUninstaller.sh" && . "thisDir/customUninstaller.sh"

 

0

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post