Difference between revisions of "UltraVNC"
m |
(Added command-line for Windows Firewall) |
||
Line 65: | Line 65: | ||
net start WinVNC | net start WinVNC | ||
echo | echo | ||
+ | </source> | ||
+ | |||
+ | |||
+ | == Windows Firewall == | ||
+ | |||
+ | When installing silently the Windows Firewall won't prompt you to allow the VNC Server. You can script allowing traffic to the VNC server (on TCP port 5900, from all sources) using: | ||
+ | |||
+ | <source lang="dos"> | ||
+ | netsh firewall add portopening TCP 5900 "VNC server" enable all | ||
</source> | </source> | ||
[[Category:Silent Installers]] | [[Category:Silent Installers]] |
Revision as of 19:01, 4 September 2008
This is a silent installer and uninstaller for distrubution of UltraVNC.
Contents
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
Windows Firewall
When installing silently the Windows Firewall won't prompt you to allow the VNC Server. You can script allowing traffic to the VNC server (on TCP port 5900, from all sources) using:
netsh firewall add portopening TCP 5900 "VNC server" enable all