(imported comment written by ktang91)
u can install and set the Ultravnc parameters with the following scripts:
action parameter query “password” with description “Please input VNC password encode valeue(Default Pass:bigfixchina)” and with default value “a4,05,fa,a8,03,65,4e,37”
action parameter query “queryset” with description “Clients connection conformation(1Yes/0 No)” and with default value “1”
action parameter query “querytime” with description “Client connection confirmation overtime(seconds)” and with default value “60”
action parameter query “view” with description “Readonly(1 No/0 Yes)” and with default value “1”
action parameter query “localinput” with description “Disable client input(1 Yes/0 No)” and with default value “1”
download http://xxxx/downloads/server_1.0.2_setup.exe
continue if {(size of it = 861619 and sha1 of it = “e373a41f9570e0277628b24aff1e61fd64244720”) of file “server_1.0.2_setup.exe” of folder “__Download”}
wait __download/server_1.0.2_setup.exe /S
if {name of operating system = “WinNT” or name of operating system = “Win98” or name of operating system = “Win95” or name of operating system = “WinME”}
appendfile REGEDIT4
else
appendfile Windows Registry Editor Version 5.00
endif
appendfile
appendfile
HKEY_LOCAL_MACHINE\SOFTWARE\UltraVnc
appendfile
appendfile
HKEY_LOCAL_MACHINE\SOFTWARE\ORL
appendfile
appendfile
HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3
appendfile “DebugMode”=dword:00000000
appendfile “DebugLevel”=dword:00000000
appendfile “AllowLoopback”=dword:00000001
appendfile “LoopbackOnly”=dword:00000000
appendfile “DisableTrayIcon”=dword:00000001
appendfile “MSLogonRequired”=dword:00000000
appendfile “NewMSLogon”=dword:00000000
appendfile “UseDSMPlugin”=dword:00000001
appendfile “ConnectPriority”=dword:00000000
appendfile “DSMPlugin”=hex:41,52,43,34,50,6c,75,67,69,6e,2e,64,73,6d,00,bf,f2,00,00,00,e4,\
appendfile fb,6f,00,78,73,f7,bf,04,fc,6f,00,02,00,00,00,3d,7d,5c,79,09,fd,6f,00,0c,ff,\
appendfile 5c,79,00,00,00,00,a8,fd,6f,00,00,00,00,00,e8,00,5d,00,38,fe,6f,00,88,1c,11,\
appendfile 76,00,00,00,00,04,fc,6f,00,e6,84,43,00,02,00,00,00,04,fc,6f,00,00,00,40,00,\
appendfile 02,00,02,02,4d,69,63,72,6f,73,6f,66,74,20,77,73,6f,63,6b,33,32,2e,64,6c,6c,\
appendfile 2c,20,76,65,72,32,2e,10,11,a3,00,01,00,00,00,00,00,00,00,00,00,00,00,00,36,\
appendfile 20,31,39,39,39,2c,20,61,74,20,32,32,3a,33,33,3a,34,32,2e,00,00,00,00,00,40,\
appendfile 00,00,00,40,00,d1,e4,f7,bf,00,00,40,00,3e,e4,f7,bf,00,00,40,00,b8,fc,6f,00,\
appendfile 00,00,40,00,00,00,40,00,00,00,00,00,00,07,f8,bf,00,00,40,00,01,00,40,00,02,\
appendfile 00,00,00,94,fc,6f,00,3e,00,00,00,00,00,00,00,00,00,00,00,90,df,03,00,d8,fc,\
appendfile 6f,00,f8,0e,00,00,e4,00,5d,00
appendfile
appendfile
HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default
appendfile “FileTransferEnabled”=dword:00000001
appendfile “FTUserImpersonation”=dword:00000001
appendfile “BlankMonitorEnabled”=dword:00000001
appendfile “CaptureAlphaBlending”=dword:00000000
appendfile “BlackAlphaBlending”=dword:00000001
appendfile “DefaultScale”=dword:00000001
appendfile “UseDSMPlugin”=dword:00000001
appendfile “DSMPlugin”=hex:41,52,43,34,50,6c,75,67,69,6e,2e,64,73,6d,00,bf,f2,00,00,00,e4,\
appendfile fb,6f,00,78,73,f7,bf,04,fc,6f,00,02,00,00,00,3d,7d,5c,79,09,fd,6f,00,0c,ff,\
appendfile 5c,79,00,00,00,00,a8,fd,6f,00,00,00,00,00,e8,00,5d,00,38,fe,6f,00,88,1c,11,\
appendfile 76,00,00,00,00,04,fc,6f,00,e6,84,43,00,02,00,00,00,04,fc,6f,00,00,00,40,00,\
appendfile 02,00,02,02,4d,69,63,72,6f,73,6f,66,74,20,77,73,6f,63,6b,33,32,2e,64,6c,6c,\
appendfile 2c,20,76,65,72,32,2e,10,11,a3,00,01,00,00,00,00,00,00,00,00,00,00,00,00,36,\
appendfile 20,31,39,39,39,2c,20,61,74,20,32,32,3a,33,33,3a,34,32,2e,00,00,00,00,00,40,\
appendfile 00,00,00,40,00,d1,e4,f7,bf,00,00,40,00,3e,e4,f7,bf,00,00,40,00,b8,fc,6f,00,\
appendfile 00,00,40,00,00,00,40,00,00,00,00,00,00,07,f8,bf,00,00,40,00,01,00,40,00,02,\
appendfile 00,00,00,94,fc,6f,00,3e,00,00,00,00,00,00,00,00,00,00,00,90,df,03,00,d8,fc,\
appendfile 6f,00,f8,0e,00,00,e4,00,5d,00
appendfile “SocketConnect”=dword:00000001
appendfile “HTTPConnect”=dword:00000001
appendfile “XDMCPConnect”=dword:00000000
appendfile “AutoPortSelect”=dword:00000001
appendfile “IdleTimeout”=dword:00000000
appendfile “QueryAccept”=dword:00000000
appendfile “LockSetting”=dword:00000000
appendfile “RemoveWallpaper”=dword:00000000
appendfile “AllowShutdown”=dword:00000000
appendfile “AllowProperties”=dword:00000001
appendfile “AllowEditClients”=dword:00000000
appendfile “Password”=hex:{ (parameter “password” of action as string)}
copy __appendfile winv.reg
delete __appendfile
wait regedit -s winv.reg
delete winv.reg
wait {(value “ProgramFilesDir” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion” of registry) as string & “\UltraVNC\winvnc.exe”} -sinstall
regset "
HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default
" “QuerySetting”=dword:{if ((parameter “queryset” of action) as integer = 1) then (4 as integer as hexadecimal) else (2 as integer as hexadecimal)}
regset "
HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default
" “QueryTimeout”=dword:{(parameter “querytime” of action) as integer as hexadecimal}
regset "
HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default
" “InputsEnabled”=dword:{(parameter “view” of action) as integer as hexadecimal}
regset "
HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default
" “LocalInputsDisabled”=dword:{(parameter “localinput” of action) as integer as hexadecimal}
if {name of operating system = “Win2000” OR name of operating system = “WinXP” OR name of operating system = “Win2003” or name of operating system = “WinNT”}
wait net start winvnc
endif
wait {(value “ProgramFilesDir” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion” of registry) as string & “\UltraVNC\winvnc.exe”} -servicehelper
//hide install/uninstall item
regset "
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UltraVNC 服务端
" “RemovedDisplayName”="{value “DisplayName” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UltraVNC %b7%fe%ce%f1%b6%cb” of registry}"
regdelete "
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\UltraVNC 服务端
" “DisplayName”
if {name of operating system = “Win95” OR name of operating system = “Win98” or name of operating system = “WinME”}
action requires restart
endif