Deployment in an Organization

Deployment in an Organization / Installing the Software—Administrators / Automated Deployment on Multiple Devices / Other Automated Deployment Tools / Example Scripts / Example Script for Uninstalling Antidote 12

Example Script for Uninstalling

In this example, the existence of Antidote 12 and Connectix files is verified to prevent unnecessary uninstalls each time the script is run.

@echo OFF
rem Warning, this file is encoded in DOS-850

echo Uninstalling Antidote 12 ...

set LOCAL_PATH=C:\Program Files\Druide
set ANTIDOTE_PATH=%LOCAL_PATH%\Antidote 12
set CONNECTIX_PATH=%LOCAL_PATH%\Connectix 12
set LOG_PATH=%PROGRAMDATA%\Druide

mkdir "%LOG_PATH%"

if not exist "%ANTIDOTE_PATH%\Application\Bin64\Antidote.exe" goto OK_ANTIDOTE
msiexec /qn /x "{C9A3C767-F1E3-4B93-AA8D-03FD6AAFA4D1}" /l*v "%LOG_PATH%\logDesAntidote12.txt"
:OK_ANTIDOTE

if not exist "%ANTIDOTE_PATH%\LingFR\Bin64\libLingFR.dll" goto OK_MODULE_FR
msiexec /qn /x "{C9A3C767-F1E3-4B93-AA8D-03FD6AAFA4D2}" /l*v "%LOG_PATH%\logDesAntidote12_Module_Français.txt"
:OK_MODULE_FR

if not exist "%ANTIDOTE_PATH%\LingEN\Bin64\libLingEN.dll" goto OK_MODULE_EN
msiexec /qn /x "{C9A3C767-F1E3-4B93-AA8D-03FD6AAFA4D3}" /l*v "%LOG_PATH%\logDesAntidote12_English_Module.txt"
:OK_MODULE_EN

if not exist "%CONNECTIX_PATH%\Application\Bin64\Connectix.exe" goto OK_CONNECTIX
msiexec /qn /x "{C9A3C767-F1E3-4B93-AA8D-03FD6AAFA4D4}" /l*v "%LOG_PATH%\logDesAntidote12_Connectix.txt"
:OK_CONNECTIX