Difference between revisions of "UltraVNC"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(The mirror driver is included in the regular installer. It does not need to be installed separately.)
(Package for UltraVNC 1.0.5)
Line 26: Line 26:
 
== Package for UltraVNC 1.0.5 ==
 
== Package for UltraVNC 1.0.5 ==
  
TODO
+
I've used the following package for 1.0.5. It may need some refinement.
 +
norestart-switch is no longer necessary for the installer. "winvnc -installs" seems to start servicehelper too. It automatically copies rc4.key for encryption and MSLogonACL for MSLogon. '''Package removal taken from 1.0.2 and has not been tested.'''
  
UltraVNC 1.0.5 is very different to UltraVNC 1.0.2.
+
<source lang="xml">
 +
<package id="ultravnc" name="Ultra VNC" revision="1053" priority="45">
 +
<check type="uninstall" condition="exists" path="UltraVNC 1.0.5.3" />
 +
<install cmd='net stop uvnc_service'>
 +
<exit code="0" />
 +
<exit code='2' />
 +
</install>
 +
<install cmd='sc delete uvnc_service' />
 +
<install cmd='cmd /c mkdir "%PROGRAMFILES%\UltraVNC"'>
 +
<exit code="0" />
 +
<exit code="1" />
 +
</install>
 +
<install cmd='cmd /c copy %SOFTWARE%\UltraVNC\rc4.key "%PROGRAMFILES%\UltraVNC"' />
 +
<install cmd='cmd /c copy %SOFTWARE%\UltraVNC\ultravnc.ini "%PROGRAMFILES%\UltraVNC"' />
 +
<install cmd='regedit /s %SOFTWARE%\UltraVNC\WinVNC3.reg' />
 +
<install cmd='%SOFTWARE%\UltraVNC\UltraVNC_1.0.5.3_Setup.exe /verysilent /loadinf=ultravnc.inf' />
 +
<install cmd='"%PROGRAMFILES%\UltraVNC\MSLogonACL.exe" /i /a %SOFTWARE%\UltraVNC\MSLogonACL' />
 +
<install cmd='"%PROGRAMFILES%\UltraVNC\winvnc.exe" -installs' />
 +
 +
<upgrade cmd='net stop uvnc_service'>
 +
<exit code="0" />
 +
<exit code='2' />
 +
</upgrade>
 +
<upgrade cmd='sc delete uvnc_service' />
 +
<upgrade cmd='cmd /c mkdir "%PROGRAMFILES%\UltraVNC"'>
 +
<exit code="0" />
 +
<exit code="1" />
 +
</upgrade>
 +
<upgrade cmd='cmd /c copy %SOFTWARE%\UltraVNC\rc4.key "%PROGRAMFILES%\UltraVNC"' />
 +
<upgrade cmd='cmd /c copy %SOFTWARE%\UltraVNC\ultravnc.ini "%PROGRAMFILES%\UltraVNC"' />
 +
<upgrade cmd='regedit /s %SOFTWARE%\UltraVNC\WinVNC3.reg' />
 +
<upgrade cmd='%SOFTWARE%\UltraVNC\UltraVNC_1.0.5.3_Setup.exe /verysilent /loadinf=ultravnc.inf' />
 +
<upgrade cmd='"%PROGRAMFILES%\UltraVNC\MSLogonACL.exe" /i /a %SOFTWARE%\UltraVNC\MSLogonACL' />
 +
<upgrade cmd='"%PROGRAMFILES%\UltraVNC\winvnc.exe" -installs' />
 +
<remove cmd='%ProgramFiles%\UltraVNC\winvnc.exe -remove' />
 +
<remove cmd='%ProgramFiles%\UltraVNC\unins000.exe /SILENT' />
 +
</package>
 +
</source>
  
 
== UltraVNC 1.0.2 Mirror Driver ==
 
== UltraVNC 1.0.2 Mirror Driver ==

Revision as of 13:07, 10 March 2009

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

Package for UltraVNC 1.0.2

<package
    id="ultravnc"
    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 changes to the defaults by saving an inf file during setup (by using the /saveinf=filename.inf switch), then retrieve them during deployment (using the /loadinf=filename.inf switch).

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

Package for UltraVNC 1.0.5

I've used the following package for 1.0.5. It may need some refinement. norestart-switch is no longer necessary for the installer. "winvnc -installs" seems to start servicehelper too. It automatically copies rc4.key for encryption and MSLogonACL for MSLogon. Package removal taken from 1.0.2 and has not been tested.

	<package id="ultravnc" name="Ultra VNC" revision="1053" priority="45">
		<check type="uninstall" condition="exists" path="UltraVNC 1.0.5.3" />
		<install cmd='net stop uvnc_service'>
			<exit code="0" />
			<exit code='2' />
		</install>
		<install cmd='sc delete uvnc_service' />
		<install cmd='cmd /c mkdir "%PROGRAMFILES%\UltraVNC"'>
			<exit code="0" />
			<exit code="1" />
		</install>
		<install cmd='cmd /c copy %SOFTWARE%\UltraVNC\rc4.key "%PROGRAMFILES%\UltraVNC"' />
		<install cmd='cmd /c copy %SOFTWARE%\UltraVNC\ultravnc.ini "%PROGRAMFILES%\UltraVNC"' />
		<install cmd='regedit /s %SOFTWARE%\UltraVNC\WinVNC3.reg' />
		<install cmd='%SOFTWARE%\UltraVNC\UltraVNC_1.0.5.3_Setup.exe /verysilent /loadinf=ultravnc.inf' />
		<install cmd='"%PROGRAMFILES%\UltraVNC\MSLogonACL.exe" /i /a %SOFTWARE%\UltraVNC\MSLogonACL' />
		<install cmd='"%PROGRAMFILES%\UltraVNC\winvnc.exe" -installs' />
		
		<upgrade cmd='net stop uvnc_service'>
			<exit code="0" />
			<exit code='2' />
		</upgrade>
		<upgrade cmd='sc delete uvnc_service' />
		<upgrade cmd='cmd /c mkdir "%PROGRAMFILES%\UltraVNC"'>
			<exit code="0" />
			<exit code="1" />
		</upgrade>
		<upgrade cmd='cmd /c copy %SOFTWARE%\UltraVNC\rc4.key "%PROGRAMFILES%\UltraVNC"' />
		<upgrade cmd='cmd /c copy %SOFTWARE%\UltraVNC\ultravnc.ini "%PROGRAMFILES%\UltraVNC"' />
		<upgrade cmd='regedit /s %SOFTWARE%\UltraVNC\WinVNC3.reg' />
		<upgrade cmd='%SOFTWARE%\UltraVNC\UltraVNC_1.0.5.3_Setup.exe /verysilent /loadinf=ultravnc.inf' />
		<upgrade cmd='"%PROGRAMFILES%\UltraVNC\MSLogonACL.exe" /i /a %SOFTWARE%\UltraVNC\MSLogonACL' />
		<upgrade cmd='"%PROGRAMFILES%\UltraVNC\winvnc.exe" -installs' />
		<remove cmd='%ProgramFiles%\UltraVNC\winvnc.exe -remove' />
		<remove cmd='%ProgramFiles%\UltraVNC\unins000.exe /SILENT' />
	</package>

UltraVNC 1.0.2 Mirror Driver

The mirror driver is included in the regular installer. It does not need to be installed separately.


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