tuto:gestion_de_parc:wpkg:tightvnc

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tuto:gestion_de_parc:wpkg:tightvnc [19/01/2012 18:38]
dani créée
tuto:gestion_de_parc:wpkg:tightvnc [18/12/2013 13:34] (Version actuelle)
dani
Ligne 6: Ligne 6:
 <?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
 <packages> <packages>
-    <package  +    <package id="tightvnc"  
-        id="tightvnc"  +             name="Serveur VNC TightVNC" 
-        name="TightVNC Server+             revision="14
-        revision="1"  +             priority="10"  
-        priority="10"  +             reboot="false">
-        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%" />+        <variable name="PKG_VERSION" value="2.7.10" /> 
 + 
 +        <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" /> 
 + 
 +        <check type="uninstall" condition="versiongreaterorequal" path="TightVNC" value="%PKG_VERSION%" />
  
         <!-- Remove RealVNC if installed -->         <!-- Remove RealVNC if installed -->
         <install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\RealVNC\VNC4\unins000.exe" "%PROGRAMFILES%\RealVNC\VNC4\unins000.exe" /SP- /VERYSILENT /NORESTART' />         <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' />
  
         <!-- Install TightVNC -->         <!-- Install TightVNC -->
-        <install cmd='"%SOFTWARE%\tightvnc\tightvnc-%PKG_VERSION%-setup.exe/S' />+        <install cmd='msiexec /qn /norestart /i "%MSI%"' />
         <!-- Install the TightVNC Server as a service -->         <!-- Install the TightVNC Server as a service -->
         <install cmd='"%INSTALL_PATH%\tvnserver" -install -silent' >         <install cmd='"%INSTALL_PATH%\tvnserver" -install -silent' >
             <exit code="1" />             <exit code="1" />
-            <exit code="0" /> +            <exit code="0" />
         </install>         </install>
         <!-- Stop the TightVNC Server whilst we import settings -->         <!-- Stop the TightVNC Server whilst we import settings -->
         <install cmd='"%INSTALL_PATH%\tvnserver" -stop -silent' >         <install cmd='"%INSTALL_PATH%\tvnserver" -stop -silent' >
             <exit code="1" />             <exit code="1" />
-            <exit code="0" /> +            <exit code="0" />
         </install>         </install>
         <!-- Import settings -->         <!-- Import settings -->
-        <install cmd='%COMSPEC% /C if exist "%SOFTWARE%\tightvnc\tightvnc.reg" regedit /s "%SOFTWARE%\tightvnc\tightvnc-settings.reg"' />+        <install cmd='%COMSPEC% /C regedit /s "%REG_PATH%"' />
         <!-- Restart the TightVNC Server -->         <!-- Restart the TightVNC Server -->
         <install cmd='"%INSTALL_PATH%\tvnserver" -start -silent' />         <install cmd='"%INSTALL_PATH%\tvnserver" -start -silent' />
- 
         <!-- Remove RealVNC if installed -->         <!-- 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='%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' />+        <!-- 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%"' />
         <upgrade cmd='"%INSTALL_PATH%\tvnserver" -reinstall -silent' />         <upgrade cmd='"%INSTALL_PATH%\tvnserver" -reinstall -silent' />
         <upgrade cmd='"%INSTALL_PATH%\tvnserver" -stop -silent' >         <upgrade cmd='"%INSTALL_PATH%\tvnserver" -stop -silent' >
             <exit code="1" />             <exit code="1" />
-            <exit code="0" /> +            <exit code="0" />
         </upgrade>         </upgrade>
-        <upgrade cmd='%COMSPEC% /C if exist "%SOFTWARE%\tightvnc\tightvnc.reg" regedit /s "%SOFTWARE%\tightvnc\tightvnc.reg"' />+        <upgrade cmd='%COMSPEC% /C regedit /s "%REG_PATH%"' />
         <upgrade cmd='"%INSTALL_PATH%\tvnserver" -start -silent' />         <upgrade cmd='"%INSTALL_PATH%\tvnserver" -start -silent' />
  
-        <remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\uninstall.exe"%INSTALL_PATH%\uninstall.exe" /S' /+        <remove cmd='msiexec /qn /norestart /x "%MSI%"' />
-        <!-- 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>     </package>
 </packages> </packages>
 </file> </file>
  • tuto/gestion_de_parc/wpkg/tightvnc.1326994734.txt.gz
  • Dernière modification: 19/01/2012 18:38
  • de dani