Changes

Jump to: navigation, search

UltraVNC

827 bytes added, 22:25, 6 December 2012
Package for UltraVNC 1.1.8 x86/x64
This is a modification of the 1.1.7 example below. In theory, this should work on XP/Vista/Win7 32-bit and 64-bit architectures, but it's only been tested on WinXP x86 and Win7 x64 so far.
This version will also set your (pre-encoded) password in ultravnc.ini using "replacetext.vbs", which can be found [[http://www.howtogeek.com/51194/replace-text-in-plain-text-files-from-the-command-line/ here]]. Note that I've set the %VNC_PASSWORD% variable in the profiles/userprofile.xml for security reasons, but you can create a variable directly in the package definition.
You need four setup files: UltraVNC_1_1_8_x64_Setup.exe, UltraVNC_1_1_8_x64_Addon.exe, UltraVNC_1_1_8_x86_Setup.exe and UltraVNC_1_1_8_x86_Addon.exe.
You also need to create two .inf files for unattended installation - one for the main installer, one for the addons installer (installer.exe Run both the main installer and the addons installer from the command line using the argument "/saveinf=file for both Setup filename". Customize your installation as you like, and Addon)the .inf file will record your preferences. You should be able to use the same .inf files for both x86 and x64 installations. Save both .inf files in your install directory. Once UltraVNC is installed, configure it however you like, then copy the %PROGRAMFILES%\uvnc bvba\UltraVNC\ultravnc.ini file to your install directory. If you want to set your password via replacetext.vbs, replace the password with the value "CHANGEME".
For the mirror Driver you need three Windows files: devcon.exe (x64 and x86 version) and certmgr.exe. You can find these via Google. To get rid of the certificate warning from Windows 7 during the driver Installation we need the .cer file. Extract it from the setupdrv.exe. Install the driver manually to a test machine. When it asks if you want to install the driver, select "Always trust software from 'uvnc bvba'". Then open certmgr.exe, select "Trusted Publishers" tab, and export the DER-formatted .cer file. After the Installation I had the problem that the driver wasn´t recognized by the System. So i manually had to update it with the devcon.exe.
<source lang="xml">
<packages>
<package id="ultravnc" name="Ultra VNC" revision="118" priority="0">
<variable name="INSTALLER_NAME" value="UltraVNC_1_1_8_x86_Setup.exe" />
<exit code="any" />
</install>
<install cmd='%SOFTWARE%\ultravnc\%INSTALLER_NAME% /verysilent /loadinf="%SOFTWARE%\ultravnc\setup.inf"' />  <install cmd='%comspec% /c copy /Y %SOFTWARE%\ultravnc\ultravnc.ini "%PROGRAMFILES%\uvnc bvba\UltraVNC"' /> <!-- Set the password in ultravnc.ini. Note that the %VNC_PASSWORD% variable is set in the profile. Then restart UltraVNC. --> <install cmd='cscript %SOFTWARE%\ultravnc\replacetext.vbs "%PROGRAMFILES%\uvnc bvba\UltraVNC\ultravnc.ini" CHANGEME %VNC_PASSWORD%' /> 
<install cmd='%comspec% /c mkdir "%PROGRAMFILES%\uvnc bvba\UltraVNC\driver"'>
<exit code="any" />
<install cmd='%SOFTWARE%\ultravnc\%ADDONS_INSTALLER_NAME% /verysilent /loadinf="%SOFTWARE%\ultravnc\addons.inf"' />
<install cmd='%comspec% /c %SOFTWARE%\ultravnc\certmgr.exe -add %SOFTWARE%\ultravnc\ultravncultravnc_x86.cer -s -r localMachine trustedpublisher' architecture/> <install cmd="x64" '%comspec% /c %SOFTWARE%\ultravnc\certmgr.exe -add %SOFTWARE%\ultravnc\ultravnc_x64.cer -s -r localMachine trustedpublisher' />
<install cmd='"%SOFTWARE%\ultravnc\devcon_x86.exe" update "C:\Program Files\uvnc bvba\UltraVNC\driver\setupdrvdriver\mv2.exeinf" installsmv_hook_display_driver2' architecture="x86" > <exit code="any" /> </install> <install cmd='"%SOFTWARE%\ultravnc\devcondevcon_x64.exe" update "C:\Program Files%PROGRAMFILES%\uvnc bvba\UltraVNC\driver\driver\mv2.inf" mv_hook_display_driver2' architecture="x64" >
<exit code="any" />
</install>
<install cmd='%comspec% /c copy /Y %SOFTWARE%\ultravnc\ultravnc.ini "%PROGRAMFILES%\uvnc bvba\UltraVNC"' /><!-- Set the password in ultravnc.ini. Note that the %VNC_PASSWORD% variable is set in the profile. Then restart UltraVNC. --> <install cmd='%comspec% /c %SOFTWARE%\ultravncdriver\replacetextsetupdrv.vbs exe"%PROGRAMFILES%\uvnc bvba\UltraVNC\ultravnc.ini" CHANGEME %VNC_PASSWORD%installs' />
<install cmd='net stop uvnc_service' />
<install cmd='net start uvnc_service' />
<remove cmd='"C:\Program Files\uvnc bvba\UltraVNC\unins000.exe" /verysilent /norestart' />
<remove cmd='%comspec% /c rmdir /S /Q "C:\Program Files\uvnc bvba"' />
 
</package>
 
</source>
Anonymous user

Navigation menu