skip to main content
Désinstallation de Workstation Agent (HFS+)
Pour désinstaller Cloud Agent via la console, allez à la page Ordinateurs, sélectionnez au moins un ordinateur et cliquez sur Maintenance > Désinstaller Cloud Agent.
Pour désinstaller Cloud sur Mac, créez un fichier avec le script suivant et exécutez sudo <nom fichier> :
 
#!/bin/sh
 
# Should be root to run this script
if [ "$EUID" != "0" ]; then
echo "Error: script must be run as root (use sudo)." 1>&2
exit 1
fi
 
# if the user didn't give a volume assume the boot (i.e. root) volume
if [ "$1" = "" ]; then
MCAVOLUME="/"
else
if [ -d "/Volumes/${1}" ]; then
MCAVOLUME="/Volumes/${1}"
else
MCAVOLUME="${1}"
fi
fi
 
if [ -d "${MCAVOLUME}" ]; then
echo "Uninstalling Cloud Agent from \"${MCAVOLUME}\"."
# remove Launchd plists for the daemons
rm -rf "${MCAVOLUME}/Library/LaunchDaemons/com.faronics.cloudagentd.plist"
# remove the actual daemons
rm -rf "${MCAVOLUME}/Library/PrivilegedHelperTools/com.faronics.cloudagentd"
 
# remove bundle file for localization
rm -rf "${MCAVOLUME}/Library/Application Support/Faronics/CloudAgent/CloudAgent.bundle"
 
# remove the receipt
# 10.6 or higher remove the receipt data from the database
pkgutil --forget "com.faronics.pkg.CloudAgent" --volume "${MCAVOLUME}"
# remove preferences
rm -rf "${MCAVOLUME}/Library/Preferences/com.faronics.cloudagent.plist"
echo "Uninstall Cloud Agent complete."
else
echo "Could not find volume \"${MCAVOLUME}\"."
fi