Déploiement en organisation

Déploiement en organisation / Installation des logiciels par l’administrateur / Déploiement automatisé sur plusieurs postes / Autres outils de déploiement automatisé / Exemples de scripts / Exemple de script pour la désinstallation d’Antidote 12

Exemple de script pour la désinstallation

Dans cet exemple, la présence des fichiers d’Antidote 12 et de Connectix est vérifiée afin d’éviter une désinstallation inutile à chaque exécution du script.

@echo OFF
rem Attention ce fichier est encodé en code page DOS-850

echo Désinstallation d'Antidote 12...

set CHEMIN_LOCAL=C:\Program Files\Druide
set CHEMIN_ANTIDOTE=%CHEMIN_LOCAL%\Antidote 12
set CHEMIN_CONNECTIX=%CHEMIN_LOCAL%\Connectix 12
set CHEMIN_LOG=%PROGRAMDATA%\Druide

mkdir "%CHEMIN_LOG%"

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

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

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

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