#86266 - 2002-06-26 02:59 AM
Re: VNC install script
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
here is one for tightVNC, but it has the same problem... It will not accept the pre configured password.
code:
break on call "\\server\share\apps\udf.kix"
$source = "\\server\share\apps\vnc" $Destination = "%windir%\system32" $pass="10,4d,d9,f7,68,2a,55,aa"
WMIService("winvnc","STOP") Shell "$destination\winvnc.exe -kill -remove" $=deltree("HKEY_LOCAL_MACHINE\Software\ORL") $=deltree("HKEY_CURRENT_USER\Software\ORL")
copy "$source\VNCHOOKS.DLL" "$destination" copy "$source\WINVNC.EXE" "$destination" copy "$source\VNCHooks_Settings.reg" "$destination"
regwrite("HKEY_LOCAL_MACHINE\Software\ORL\VNC\3.3.3","","")
$key="HKEY_LOCAL_MACHINE\Software\ORL\WinVNC3" regwrite($key,"SocketConnect","1","REG_DWORD") $=WriteValue($key,"AutoPortSelect","1","REG_DWORD") $=WriteValue($key,"InputsEnabled","1","REG_DWORD") $=WriteValue($key,"LocalInputsDisabled","0","REG_DWORD") $=WriteValue($key,"IdleTimeout","0","REG_DWORD") $=WriteValue($key,"QuerySetting","2","REG_DWORD") $=WriteValue($key,"QueryTimeout","10","REG_DWORD") $=WriteValue($key,"Password","$pass","REG_BINARY") $=WriteValue($key,"PollUnderCursor","0","REG_DWORD") $=WriteValue($key,"PollForeground","1","REG_DWORD") $=WriteValue($key,"PollFullScreen","0","REG_DWORD") $=WriteValue($key,"OnlyPollConsole","1","REG_DWORD") $=WriteValue($key,"OnlyPollOnEvent","0","REG_DWORD") $=WriteValue($key,"AllowShutdown","0","REG_DWORD") $=WriteValue($key,"AllowConfig","0","REG_DWORD")
shell 'regedit -s $destination\VNCHooks_Settings.reg' Shell "$destination\winvnc.exe -install" WMIService("winvnc","START","Automatic")
[ 26 June 2002, 03:06: Message edited by: Radimus ]
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 1821 anonymous users online.
|
|
|