Divalto infinity
This is a silent installer for Divalto Infinity, an ERP sowtware from Divalto. More infos from www.divalto.com/en/.
This release is 7.2.
<package id="divalto" name="Divalto infinity 7" revision="8" priority="0" execute="always"><!-- -->
<depends package-id="vc2005-redist" />
<depends package-id="vc2008-redist" />
<depends package-id="vc2010-redist" />
<check type="uninstall" condition="exists" path="Divalto infinity 7.2" />
<check type="file" condition="sizeequals" path="C:\Divalto\sys\fconfig.dhfd" value="6656"/>
<install cmd='%COMSPEC% "%SOFTWARE2%\Divalto\Divalto Infinity 7.2 CD204C du 09_10_2013\plus\disk1\installdivalto.exe" /QUIET /DEFAULTSERVER:"SRVERP" /FORCEUSER:" " ' />
<!-- on attend 1 minute pour que l install se termine-->
<install cmd='%COMSPEC% /C start /wait PING 127.0.0.1 -n 60 >nul' ><exit code='any'/></install>
<!--arret des services divalto-->
<install cmd='c:\divalto\sys\xDivaltoRestart.exe -stop' />
<!-- copie des fichiers de config pour install silencieuse. -->
<install cmd='%COMSPEC% /c xcopy /Y /Q "%SOFTWARE2%\Divalto\sys\*.*" c:\divalto\sys\*.* > NUL'/>
<!--copie du raccourci sur le bureau et menu demarre-->
<install os=".+6\.[0-3]\.\d{4}" cmd='xcopy /Y "%SOFTWARE2%\Divalto\Divalto7.2.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Divalto\*.*"' ><exit code="any" /></install> <!-- pour vista et +-->
<install os=".+6\.[0-3]\.\d{4}" cmd='xcopy /Y "%SOFTWARE2%\Divalto\Divalto7.2.lnk" "%PUBLIC%\Desktop\*.*"' ><exit code="any" /></install> <!-- pour vista et +-->
<install os=".+5\.[1-2]\.\d{4}" cmd='xcopy /Y "%SOFTWARE2%\Divalto\Divalto7.2.lnk" "%ALLUSERSPROFILE%\Bureau\*.*"' ><exit code='any'/></install> <!-- pour winXP-->
<!-- raz variable x_user
<install cmd='wscript.exe "%SOFTWARE2%\Divalto\remplace_chaine_rep.vbs"' ><exit code='any'/></install>-->
<!-- ajout en base de registre HKU\.DEFAULT (pour le user system) de: serveur de log, suppr de X_USER, ajout de X_USER-->
<install cmd='reg add "HKEY_USERS\.DEFAULT\Software\Divalto\divalto.ini\System" /v "ServeurXlogf" /d "SRVERP" /t REG_SZ /f'/>
<install cmd='reg delete "HKEY_USERS\.DEFAULT\Environment" /v "X_USER" /f'/>
<install cmd='reg add "HKEY_USERS\.DEFAULT\Environment" /v "X_USER" /d " " /t REG_SZ /f'/>
<!-- ajout en base de registre HKCU via active setup de: serveur de log, suppr de X_USER, ajout de X_USER, environnement, aide-->
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv1" /v "Version" /d "1" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv2" /v "Version" /d "1" /t REG_SZ /f' />
<!--<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv3" /v "Version" /d "1" /t REG_SZ /f' />-->
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv4" /v "Version" /d "1" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv5" /v "Version" /d "1" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv6" /v "Version" /d "1" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv7" /v "Version" /d "1" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv1" /v "StubPath" /d "reg add HKEY_CURRENT_USER\Software\Divalto\divalto.ini\System /v "ServeurXlogf" /d "SRVERP" /t REG_SZ /f" /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv2" /v "StubPath" /d "reg delete HKEY_CURRENT_USER\Environment /v "X_USER" /f" /f' />
<!--<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv3" /v "StubPath" /d "reg add HKEY_CURRENT_USER\Environment /v "X_USER" /d " " /t REG_SZ /f" /f' />-->
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv4" /v "StubPath" /d "reg add HKEY_CURRENT_USER\Software\Divalto\divalto.ini\Environnement /v "courant" /d "socofer" /t REG_SZ /f" /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv5" /v "StubPath" /d "reg add HKEY_CURRENT_USER\Software\Divalto\divalto.ini\Environnement /v "socofer" /d "//SRVERP/divalto/sys" /t REG_SZ /f" /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv6" /v "StubPath" /d "reg add HKEY_CURRENT_USER\Software\Divalto\divalto.ini\System /v "serveursearch" /d "SRVERP" /t REG_SZ /f" /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnabledivaltoenv7" /v "StubPath" /d "reg add HKEY_CURRENT_USER\Software\Divalto\divalto.ini\System /v "CheminAidesWeb" /d "file://srverp/DivaltoWebAide" /t REG_SZ /f" /f' />
<!--redemarrage des services divalto-->
<install cmd='c:\divalto\sys\xDivaltoRestart.exe -start' ><exit code='any'/></install>
<install cmd='c:\divalto\sys\xDivaltoSelectEnv.exe /env:"socofer"' ><exit code='any'/></install>
<upgrade include="install" />
</package>