I'm testing a script, but looking for a better suggestion that runs silently without any user invention. Running the uninstaller app isn't ideal.
#!/bin/bash
# Path to the uninstallation apps
UNINSTALL_APP="/Applications/Cisco/Uninstall Cisco Secure Client.app"
DART_UNINSTALL_APP="/Applications/Cisco/Uninstall Cisco Secure Client - DART.app"
# Check if the uninstall app exists and execute it with sudo
if [ -e "$UNINSTALL_APP" ]; then
echo "Uninstalling Cisco Secure Client..."
sudo open "$UNINSTALL_APP"
else
echo "Cisco Secure Client uninstallation app not found."
fi
# Check if the DART uninstall app exists and execute it with sudo
if [ -e "$DART_UNINSTALL_APP" ]; then
echo "Uninstalling Cisco Secure Client - DART..."
sudo open "$DART_UNINSTALL_APP"
else
echo "Cisco Secure Client - DART uninstallation app not found."
fi