Example Script for Initial Deployment
In this example, the existence of Antidote 12 and Connectix files is verified to prevent unnecessary installs each time the script is run.
@echo OFF
rem Warning, this file is encoded in DOS-850
echo Deploying Antidote 12...
set REMOTE_PATH=\\SERVER\AntidoteFolder
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 exist "%ANTIDOTE_PATH%\Application\Bin64\Antidote.exe" goto OK_DESANCIENANTIDOTE
if exist "%CONNECTIX_PATH%\Application\Bin64\Connectix.exe" goto OK_DESANCIENANTIDOTE
rem A6 (Antidote RX)
msiexec /qn /x {A474EA56-5DBD-4181-8230-806A4762EA7F} /l*v "%LOG_PATH%\logDesAntidoteRX.txt"
rem A7 (Antidote HD)
msiexec /qn /x {56CDB4FE-895F-4E0D-8BB4-9A8D4310898D} /l*v "%LOG_PATH%\logDesAntidoteHD.txt"
rem A8 (Antidote 8)
msiexec /qn /x {09AAAB09-6DBA-4DD9-9865-54597D3FBCA8} /l*v "%LOG_PATH%\logDesAntidote8.txt"
rem A9 (Antidote 9)
msiexec /qn /x {BFA17B4C-70D3-480F-8476-76197F614AB6} /l*v "%LOG_PATH%\logDesAntidote9.txt"
msiexec /qn /x {BFA17B4C-70D3-480F-8476-76197F614AB7} /l*v "%LOG_PATH%\logDesAntidote9_Module_Français.txt"
msiexec /qn /x {BFA17B4C-70D3-480F-8476-76197F614AB8} /l*v "%LOG_PATH%\logDesAntidote9_English_Module.txt"
rem A10 (Antidote 10)
msiexec /qn /x {134E0741-C569-4E8C-A7FC-7F95B14CAAB1} /l*v "%LOG_PATH%\logDesAntidote10.txt"
msiexec /qn /x {134E0741-C569-4E8C-A7FC-7F95B14CAAB2} /l*v "%LOG_PATH%\logDesAntidote10_Module_Français.txt"
msiexec /qn /x {134E0741-C569-4E8C-A7FC-7F95B14CAAB3} /l*v "%LOG_PATH%\logDesAntidote10_English_Module.txt"
msiexec /qn /x {134E0741-C569-4E8C-A7FC-7F95B14CAAB4} /l*v "%LOG_PATH%\logDesAntidote10_Connectix.txt"
rem A11 (Antidote 11)
msiexec /qn /x {2643823D-D15F-4046-8388-401756A5C921} /l*v "%LOG_PATH%\logDesAntidote11.txt"
msiexec /qn /x {2643823D-D15F-4046-8388-401756A5C922} /l*v "%LOG_PATH%\logDesAntidote11_Module_Français.txt"
msiexec /qn /x {2643823D-D15F-4046-8388-401756A5C923} /l*v "%LOG_PATH%\logDesAntidote11_English_Module.txt"
msiexec /qn /x {2643823D-D15F-4046-8388-401756A5C924} /l*v "%LOG_PATH%\logDesAntidote11_Connectix.txt"
:OK_DESANCIENANTIDOTE
if exist "%ANTIDOTE_PATH%\Application\Bin64\Antidote.exe" goto OK_ANTIDOTE
if not exist "%REMOTE_PATH%\Antidote12.msi" goto OK_ANTIDOTE
msiexec /qn /i "%REMOTE_PATH%\Antidote12.msi" TRANSFORMS="%REMOTE_PATH%\ReseauAntidote.mst;%REMOTE_PATH%\Antidote12-Interface-fr.mst" /l*v "%LOG_PATH%\logInsAntidote12.txt"
:OK_ANTIDOTE
if exist "%ANTIDOTE_PATH%\LingFR\Bin64\libLingFR.dll" goto OK_MODULE_FR
if not exist "%REMOTE_PATH%\Antidote12-Module-francais.msi" goto OK_MODULE_FR
msiexec /qn /i "%REMOTE_PATH%\Antidote12-Module-francais.msi" TRANSFORMS="%REMOTE_PATH%\Antidote12-Module-francais-Interface-fr.mst" /l*v "%LOG_PATH%\logInsAntidote12_Module_Français.txt"
:OK_MODULE_FR
if exist "%ANTIDOTE_PATH%\LingEN\Bin64\libLingEN.dll" goto OK_MODULE_EN
if not exist "%REMOTE_PATH%\Antidote12-English-module.msi" goto OK_MODULE_EN
msiexec /qn /i "%REMOTE_PATH%\Antidote12-English-module.msi" TRANSFORMS="%REMOTE_PATH%\Antidote12-English-module-Interface-fr.mst" /l*v "%LOG_PATH%\logInsAntidote12_English_Module.txt"
:OK_MODULE_EN
if exist "%CONNECTIX_PATH%\Application\Bin64\Connectix.exe" goto OK_CONNECTIX
if not exist "%REMOTE_PATH%\Antidote-Connectix12.msi" goto OK_CONNECTIX
msiexec /qn /i "%REMOTE_PATH%\Antidote-Connectix12.msi" TRANSFORMS="%REMOTE_PATH%\ReseauConnectix.mst;%REMOTE_PATH%\Antidote-Connectix12-Interface-fr.mst" /l*v "%LOG_PATH%\logInsAntidote12_Connectix.txt"
:OK_CONNECTIX
Previous
Example Script for Uninstalling Previous Editions
Next
Example Script for Uninstalling