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 Installing Update

Example Script for Installing Update

In this example, the existence of Antidote 12 and Connectix files is verified to only attempt to update existing installations.

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

rem Warning, do not use this script for an initial deployment.

echo Updating 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 not exist "%ANTIDOTE_PATH%\Application\Bin64\Antidote.exe" goto OK_ANTIDOTE
if not exist "%REMOTE_PATH%\Antidote12.msi" goto OK_ANTIDOTE
msiexec /qn REINSTALL=ALL REINSTALLMODE=vomus /i "%REMOTE_PATH%\Antidote12.msi" TRANSFORMS="%REMOTE_PATH%\ReseauAntidote.mst;%REMOTE_PATH%\Antidote12-Interface-fr.mst" /l*v "%LOCAL_PATH%\logMajAntidote12.txt"
:OK_ANTIDOTE

if not 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 REINSTALL=ALL REINSTALLMODE=vomus /i "%REMOTE_PATH%\Antidote12-Module-francais.msi" TRANSFORMS="%REMOTE_PATH%\Antidote12-Module-francais-Interface-fr.mst" /l*v "%LOCAL_PATH%\logMajAntidote12_Module_Français.txt"
:OK_MODULE_FR

if not 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 REINSTALL=ALL REINSTALLMODE=vomus /i "%REMOTE_PATH%\Antidote12-English-module.msi" TRANSFORMS="%REMOTE_PATH%\Antidote12-English-module-Interface-fr.mst" /l*v "%LOCAL_PATH%\logMajAntidote12_English_Module.txt"
:OK_MODULE_EN

if not exist "%CONNECTIX_PATH%\Application\Bin64\Connectix.exe" goto OK_CONNECTIX
if not exist "%REMOTE_PATH%\Antidote-Connectix12.msi" goto OK_CONNECTIX
msiexec /qn REINSTALL=ALL REINSTALLMODE=vomus /i "%REMOTE_PATH%\Antidote-Connectix12.msi" TRANSFORMS="%REMOTE_PATH%\ReseauConnectix.mst;%REMOTE_PATH%\Antidote-Connectix12-Interface-fr.mst" /l*v "%LOCAL_PATH%\logMajAntidote12_Connectix.txt"
:OK_CONNECTIX