TightVNC Server for WPKG on iPasserelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
3.4 KiB

13 years ago
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="tightvnc"
name="Serveur VNC TightVNC"
12 years ago
revision="11"
13 years ago
priority="10"
reboot="false">
12 years ago
<variable name="PKG_VERSION" value="2.7.1" />
13 years ago
<variable architecture="x86" name="MSI" value="%SOFTWARE%\tightvnc\tightvnc-%PKG_VERSION%-setup-32bit.msi" />
<variable architecture="x64" name="MSI" value="%SOFTWARE%\tightvnc\tightvnc-%PKG_VERSION%-setup-64bit.msi" />
<variable name="REG_PATH" value="%SETTINGS%\tightvnc\tightvnc.reg" />
<variable name="INSTALL_PATH" value="%PROGRAMFILES%\TightVNC" />
13 years ago
<check type="uninstall" condition="versiongreaterorequal" path="TightVNC" value="%PKG_VERSION%" />
13 years ago
<!-- Remove RealVNC if installed -->
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\RealVNC\VNC4\unins000.exe" "%PROGRAMFILES%\RealVNC\VNC4\unins000.exe" /SP- /VERYSILENT /NORESTART' />
<!-- Remove 2.0.X TightVNC if needed -->
<install architecture='x86' cmd='"%ProgramFiles%\TightVNC\uninstall.exe" /S' >
<exit code="any" />
</install>
<install architecture='x64' cmd='"%ProgramFiles(x86)%\TightVNC\uninstall.exe" /S' >
<exit code="any" />
</install>
<!-- Wait a few seconds for the uninstall to run as it returns immediatly -->
<install cmd='%COMSPEC% /C ping -n 5 127.0.0.1 1>NUL 2>NUL' />
13 years ago
<!-- Install TightVNC -->
<install cmd='msiexec /qn /norestart /i "%MSI%"' />
13 years ago
<!-- 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 regedit /s "%REG_PATH%"' />
<!-- 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' />
<!-- Remove 2.0.X TightVNC if needed -->
<upgrade architecture='x86' cmd='"%ProgramFiles%\TightVNC\uninstall.exe" /S' >
<exit code="any" />
</upgrade>
<upgrade architecture='x64' cmd='"%ProgramFiles(x86)%\TightVNC\uninstall.exe" /S' >
<exit code="any" />
</upgrade>
<!-- Wait a few seconds for the uninstall to run as it returns immediatly -->
<upgrade cmd='%COMSPEC% /C ping -n 5 127.0.0.1 1>NUL 2>NUL' />
<upgrade cmd='msiexec /qn /norestart /i "%MSI%"' />
13 years ago
<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 regedit /s "%REG_PATH%"' />
<upgrade cmd='"%INSTALL_PATH%\tvnserver" -start -silent' />
<remove cmd='msiexec /qn /norestart /x "%MSI%"' />
13 years ago
</package>
</packages>