tuto:gestion_de_parc:wpkg:tightvnc

Ceci est une ancienne révision du document !


Tight VNC

tightvnc.xml
<?xml version="1.0" encoding="UTF-8"?>
<packages>
    <package 
        id="tightvnc" 
        name="TightVNC Server"
        revision="1" 
        priority="10" 
        reboot="false">
 
        <variable name="PKG_VERSION" value="2.0.4" />
        <variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\TightVNC" />
        <variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\TightVNC" />
 
        <check type="uninstall" condition="exists" path="TightVNC %PKG_VERSION%" />
 
        <!-- Remove RealVNC if installed -->
        <install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\RealVNC\VNC4\unins000.exe" "%PROGRAMFILES%\RealVNC\VNC4\unins000.exe" /SP- /VERYSILENT /NORESTART' />
 
        <!-- Install TightVNC -->
        <install cmd='"%SOFTWARE%\tightvnc\tightvnc-%PKG_VERSION%-setup.exe" /S' />
        <!-- Install the TightVNC Server as a service -->
        <install cmd='"%INSTALL_PATH%\tvnserver" -install -silent' >
            <exit code="1" />
            <exit code="0" />			
        </install>
        <!-- Stop the TightVNC Server whilst we import settings -->
        <install cmd='"%INSTALL_PATH%\tvnserver" -stop -silent' >
            <exit code="1" />
            <exit code="0" />			
        </install>
        <!-- Import settings -->
        <install cmd='%COMSPEC% /C if exist "%SOFTWARE%\tightvnc\tightvnc.reg" regedit /s "%SOFTWARE%\tightvnc\tightvnc-settings.reg"' />
        <!-- Restart the TightVNC Server -->
        <install cmd='"%INSTALL_PATH%\tvnserver" -start -silent' />
 
        <!-- Remove RealVNC if installed -->
        <upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\RealVNC\VNC4\unins000.exe" "%PROGRAMFILES%\RealVNC\VNC4\unins000.exe" /SP- /VERYSILENT /NORESTART' />
        <upgrade cmd='"%SOFTWARE%\tightvnc\tightvnc-%PKG_VERSION%-setup.exe" /S' />
        <upgrade cmd='"%INSTALL_PATH%\tvnserver" -reinstall -silent' />
        <upgrade cmd='"%INSTALL_PATH%\tvnserver" -stop -silent' >
            <exit code="1" />
            <exit code="0" />			
        </upgrade>
        <upgrade cmd='%COMSPEC% /C if exist "%SOFTWARE%\tightvnc\tightvnc.reg" regedit /s "%SOFTWARE%\tightvnc\tightvnc.reg"' />
        <upgrade cmd='"%INSTALL_PATH%\tvnserver" -start -silent' />
 
        <remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\uninstall.exe" "%INSTALL_PATH%\uninstall.exe" /S' />
        <!-- Uninstall returns immediatly, so just wait a few seconds for it to remove before checking the status again
             Unfortunatly, WINDOWS has no sleep commands -->
        <remove cmd='%COMSPEC% /C ping -n 5 127.0.0.1 1>NUL 2>NUL' >
            <exit code="any" />
        </remove>
    </package>
</packages>
  • tuto/gestion_de_parc/wpkg/tightvnc.1326994734.txt.gz
  • Dernière modification: 19/01/2012 18:38
  • de dani