Multi-User License Deployment on Windows

 Attention — This page presents content from an old edition. Consult the documentation for the current release instead.

Multi-User License Deployment on Windows / 6 - Other Automated Development Tools / 2 - Example Scripts / B - Example Script for Initial Deployment

6.2.B - Example Script for Initial Deployment

@echo OFF
rem Warning, this script is encode page DOS-850

echo Deploying Antidote 10...

set REMOTE_PATH=\\SERVEUR\DossierAntidote
set LOCAL_PATH=C:\Program Files (x86)\Druide\Antidote 10
mkdir "%LOCAL_PATH%"

if exist "%LOCAL_PATH%\TemoinDesAnciensAntidote" goto OK_DESANCIENANTIDOTE
rem A6 (Antidote RX)
msiexec /qn /x {A474EA56-5DBD-4181-8230-806A4762EA7F} /l*v "%LOCAL_PATH%\logDesAncienAntidoteA6.txt"
rem A7 (Antidote HD)
msiexec /qn /x {56CDB4FE-895F-4E0D-8BB4-9A8D4310898D} /l*v "%LOCAL_PATH%\logDesAncienAntidoteA7.txt"
rem A8 (Antidote 8)
msiexec /qn /x {09AAAB09-6DBA-4DD9-9865-54597D3FBCA8} /l*v "%LOCAL_PATH%\logDesAncienAntidoteA8.txt"
rem A9 (Antidote 10)
msiexec /qn /x {BFA17B4C-70D3-480F-8476-76197F614AB6} /l*v "%LOCAL_PATH%\logDesAncienAntidoteA9.txt"
msiexec /qn /x {BFA17B4C-70D3-480F-8476-76197F614AB7} /l*v "%LOCAL_PATH%\logDesAncienAntidoteA9_FR.txt"
msiexec /qn /x {BFA17B4C-70D3-480F-8476-76197F614AB8} /l*v "%LOCAL_PATH%\logDesAncienAntidoteA9_EN.txt"
echo . > "%LOCAL_PATH%\TemoinDesAnciensAntidote"
:OK_DESANCIENANTIDOTE

if exist "%LOCAL_PATH%\TemoinInsAntidote" goto OK_ANTIDOTE
msiexec /qn /i "%REMOTE_PATH%\Antidote10.msi" TRANSFORMS="%REMOTE_PATH%\ReseauAntidote.mst;%REMOTE_PATH%\Antidote10-Interface-fr.mst" /l*v "%LOCAL_PATH%\logInsAntidote.txt"
echo . > "%LOCAL_PATH%\TemoinInsAntidote"
:OK_ANTIDOTE

if exist "%LOCAL_PATH%\TemoinInsModuleFrancais" goto OK_MODULE_FR
if not exist "%REMOTE_PATH%\Antidote10-Module-francais.msi" goto OK_MODULE_FR
msiexec /qn /i "%REMOTE_PATH%\Antidote10-Module-francais.msi" TRANSFORMS="%REMOTE_PATH%\Antidote10-Module-francais-Interface-fr.mst" /l*v "%LOCAL_PATH%\logInsModuleFr.txt"
echo . > "%LOCAL_PATH%\TemoinInsModuleFrancais"
:OK_MODULE_FR

if exist "%LOCAL_PATH%\TemoinInsEnglishModule" goto OK_MODULE_EN
if not exist "%REMOTE_PATH%\Antidote10-English-module.msi" goto OK_MODULE_EN
msiexec /qn /i "%REMOTE_PATH%\Antidote10-English-module.msi" TRANSFORMS="%REMOTE_PATH%\Antidote10-English-module-Interface-fr.mst" /l*v "%LOCAL_PATH%\logInsModuleEn.txt"
echo . > "%LOCAL_PATH%\TemoinInsEnglishModule"
:OK_MODULE_EN

if exist "%LOCAL_PATH%\TemoinInsConnectix" goto OK_CONNECTIX
if not exist "%REMOTE_PATH%\Antidote-Connectix10.msi" goto OK_CONNECTIX
msiexec /qn /i "%REMOTE_PATH%\Antidote-Connectix10.msi" TRANSFORMS="%REMOTE_PATH%\ReseauConnectix.mst;%REMOTE_PATH%\Antidote-Connectix10-Interface-fr.mst" /l*v "%LOCAL_PATH%\logInsConnectix.txt"
echo . > "%LOCAL_PATH%\TemoinInsConnectix"
:OK_CONNECTIX