Changes
UltraVNC
,Updated 1.0.5.3 package with mirror driver installation and working remove section
This is a silent installer and uninstaller for distrubution of UltraVNC.
== Package for UltraVNC 1.0.5.3 ==
A lot has changed since v1.0.2:
* The norestart-switch is no longer necessary for the installer, only for the un-installer.
* "winvnc -installs" seems to start servicehelper too.
* The mirror driver is not installed together with UltraVNC automaticaly. This package example however also also installs/uninstalls it but it can also be put into a seperate package if you want.
* UltraVNC settings are no longer saved into the registry but in a seperate ultravnc.ini file. So you will have to create that ini file with an existing installation (maybe the one resulting from generating the setup inf file (by using the /saveinf=filename.inf switch)) and copy it into your software directory.
This example automatically copies rc4.key for encryption and MSLogonACL for MSLogon.
<source lang="xml">
<package
id="ultravnc"
name="Ultra VNC"
revision="1053"
priority="45">
<check type="uninstall" condition="exists" path="UltraVNC 1.0.5.3" />
<!-- Test for mirror driver -->
<check type="registry" condition="exists" path="HKLM\SYSTEM\CurrentControlSet\Services\mv2\Start" />
<install cmd='net stop uvnc_service'>
<exit code="0" />
<exit code='2' />
</install>
<install cmd='sc delete uvnc_service' />
<install cmd='%SOFTWARE%\UltraVNC\UltraVNC_1.0.5.3_Setup.exe /verysilent /loadinf="%SOFTWARE%\UltraVNC\ultravnc_server.inf"' />
<install cmd='cmd /c copy /Y %SOFTWARE%\UltraVNC\ultravnc.ini "%PROGRAMFILES%\UltraVNC"' />
<install cmd='cmd /c copy /Y %SOFTWARE%\UltraVNC\rc4.key "%PROGRAMFILES%\UltraVNC"' />
<install cmd='"%PROGRAMFILES%\UltraVNC\MSLogonACL.exe" /i /a %SOFTWARE%\UltraVNC\MSLogonACL' />
<install cmd='%comspec% /c start /WAIT "Mirror Driver Install" /D"%ProgramFiles%\UltraVNC\driver\XP" "%ProgramFiles%\UltraVNC\driver\XP\setupdrv.exe" install' />
<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='sc delete uvnc_service' />
<upgrade cmd='%SOFTWARE%\UltraVNC\UltraVNC_1.0.5.3_Setup.exe /verysilent /loadinf="%SOFTWARE%\UltraVNC\ultravnc_server.inf"' />
<upgrade cmd='cmd /c copy /Y %SOFTWARE%\UltraVNC\ultravnc.ini "%PROGRAMFILES%\UltraVNC"' />
<upgrade cmd='cmd /c copy /Y %SOFTWARE%\UltraVNC\rc4.key "%PROGRAMFILES%\UltraVNC"' />
<upgrade cmd='"%PROGRAMFILES%\UltraVNC\MSLogonACL.exe" /i /a %SOFTWARE%\UltraVNC\MSLogonACL' />
<upgrade cmd='%comspec% /c start /WAIT "Mirror Driver Install" /D"%ProgramFiles%\UltraVNC\driver\XP" "%ProgramFiles%\UltraVNC\driver\XP\setupdrv.exe" install' />
<upgrade cmd='"%PROGRAMFILES%\UltraVNC\winvnc.exe" -installs' />
<remove cmd='%comspec% /c start /WAIT "Mirror Driver Uninstall" /D"%ProgramFiles%\UltraVNC\driver\XP" "%ProgramFiles%\UltraVNC\driver\XP\setupdrv.exe" uninstall' />
<remove cmd='net stop uvnc_service'>
<exit code="0" />
<exit code='2' />
</remove>
<remove cmd='sc delete uvnc_service' />
<!-- Actually Delete mirror driver service as setupdrv doesn't seem to do that -->
<remove cmd='sc delete mv2' />
<remove cmd='%ProgramFiles%\UltraVNC\unins000.exe /verysilent /norestart' />
</package>
</source>
== Package for UltraVNC 1.0.2 ==
There is a problem with installation of UltraVNC Mirror Driver on some computers - installation freezes.
== UltraVNC 1.0.2 Mirror Driver ==
== UltraVNC 1.0.2 Alternative installation ==
I couldn't install it with the UltraVNC installer on some machines - it was hanging all the time.