Difference between revisions of "UltraVNC"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 1: Line 1:
 
This is a silent installer and uninstaller for distrubution of UltraVNC.
 
This is a silent installer and uninstaller for distrubution of UltraVNC.
  
<package
+
== Basic XML package for UltraVNC ==
  id="ultravnc"
+
  name="UltraVNC v1.0.1"
+
  revision="1"
+
  reboot="false"
+
  priority="10">
+
  <check type="uninstall" condition="exists" path="UltraVNC v1.0.1" />
+
  <install cmd='%SOFTWARE%\ultravnc\UltraVNC-101-Setup.exe /norestart /silent' />
+
  <upgrade cmd='%SOFTWARE%\ultravnc\UltraVNC-101-Setup.exe /norestart /silent' />
+
  <remove cmd='%ProgramFiles%\UltraVNC\unins000.exe /SILENT' />
+
</package>
+
  
<package
+
<source lang="xml">
 +
<package
 
     id="ultravnc102"
 
     id="ultravnc102"
 
     name="Ultravnc 1.0.2"
 
     name="Ultravnc 1.0.2"
Line 26: Line 17:
 
  <remove cmd='%ProgramFiles%\UltraVNC\winvnc.exe -remove' />
 
  <remove cmd='%ProgramFiles%\UltraVNC\winvnc.exe -remove' />
 
  <remove cmd='%ProgramFiles%\UltraVNC\unins000.exe /SILENT' />
 
  <remove cmd='%ProgramFiles%\UltraVNC\unins000.exe /SILENT' />
</package>
+
</package>
 +
</source>
  
 
Note that you can save change the defaults by saving an inf file during a setup and retrieve them later during deployment.<br>
 
Note that you can save change the defaults by saving an inf file during a setup and retrieve them later during deployment.<br>
Line 32: Line 24:
  
 
There is a problem with installation of UltraVNC Mirror Driver on some computers - installation freezes.
 
There is a problem with installation of UltraVNC Mirror Driver on some computers - installation freezes.
 +
  
 
== Ultra VNC Mirror driver ==
 
== Ultra VNC Mirror driver ==
Line 50: Line 43:
 
* if you want to test the silent installation and you log in over RDP, installation will hand during the installation of the Mirror driver
 
* if you want to test the silent installation and you log in over RDP, installation will hand during the installation of the Mirror driver
 
* settings in /loadinf seems to be ignored during silent installation - you can't exclude the Mirror Driver this way
 
* settings in /loadinf seems to be ignored during silent installation - you can't exclude the Mirror Driver this way
 +
  
 
== Alternative installation ==
 
== Alternative installation ==
Line 63: Line 57:
 
* uses "echo" to exit with code 0
 
* uses "echo" to exit with code 0
  
 
+
<source lang="dos">
<pre>
+
 
%SOFTWARE%\robocopy %SOFTWARE%\UltraVNC\UltraVNC C:\Programme\UltraVNC /MIR /W:3 /R:3 >nul
 
%SOFTWARE%\robocopy %SOFTWARE%\UltraVNC\UltraVNC C:\Programme\UltraVNC /MIR /W:3 /R:3 >nul
 
C:\Programme\UltraVNC\winvnc.exe -remove
 
C:\Programme\UltraVNC\winvnc.exe -remove
Line 72: Line 65:
 
net start WinVNC
 
net start WinVNC
 
echo
 
echo
</pre>
+
</source>
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Revision as of 19:16, 27 April 2008

This is a silent installer and uninstaller for distrubution of UltraVNC.

Basic XML package for UltraVNC

<package
    id="ultravnc102"
    name="Ultravnc 1.0.2"
    revision="1"
    reboot="false"
    priority="2">
 <check type="uninstall" condition="exists" path="UltraVNC v1.0.2" />
 <install cmd='%SOFTWARE%\UltraVNC-102-Setup.exe /verysilent /norestart /SP-' />
 <install cmd='%ProgramFiles%\UltraVNC\winvnc.exe -sinstall' />
 <install cmd='%ProgramFiles%\UltraVNC\winvnc.exe -servicehelper' />
 <upgrade cmd='%SOFTWARE%\UltraVNC-102-Setup.exe /verysilent /norestart /SP-' />
 <remove cmd='%ProgramFiles%\UltraVNC\winvnc.exe -remove' />
 <remove cmd='%ProgramFiles%\UltraVNC\unins000.exe /SILENT' />
</package>

Note that you can save change the defaults by saving an inf file during a setup and retrieve them later during deployment.
Simply add /saveinf=filename.inf and later /loadinf=filename.inf to the UltraVNC-101-Setup.exe command.

There is a problem with installation of UltraVNC Mirror Driver on some computers - installation freezes.


Ultra VNC Mirror driver

UltraVncDriverSetupSilent.exe /verysilent /norestart /SP-

Available from http://www.uvnc.com/download/

Did anyone get it working with /loadinf? For me, it just igores, whatever is in the file.

easier to just export the registry from [HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]

<install cmd='regedit.exe /s %SOFTWARE%\vnc_settings.reg' />


Notes

  • if you want to test the silent installation and you log in over RDP, installation will hand during the installation of the Mirror driver
  • settings in /loadinf seems to be ignored during silent installation - you can't exclude the Mirror Driver this way


Alternative installation

I couldn't install it with the UltraVNC installer on some machines - it was hanging all the time.

Here's a batch script which:

  • copies UltraVNC directory to %PROGRAMFILES% (available in UltraVNC-102-Bin.zip)
  • removes the service - if you had any other VNC servers installed in the past, this step might be helpful to avoid potential conflicts
  • adds the service
  • adds registry entries - after configuring the server (password, access etc., copy \\HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\)
  • starts the service
  • uses "echo" to exit with code 0
%SOFTWARE%\robocopy %SOFTWARE%\UltraVNC\UltraVNC C:\Programme\UltraVNC /MIR /W:3 /R:3 >nul
C:\Programme\UltraVNC\winvnc.exe -remove
C:\Programme\UltraVNC\winvnc.exe -sinstall
regedit /s %SOFTWARE%\UltraVNC\VNCHooks_Settings.reg
regedit /s %SOFTWARE%\UltraVNC\ultravnc.reg
net start WinVNC
echo