remotely installing WinVNC as service on NT
Brachmann Shaun
Shaun.Brachmann "at" kohlerco.com
Tue, 11 Apr 2000 13:14:29 +0000
<see original message at bottom of page>
there are several choices, this one being the simplest and requiring
absolutely no other tools. it may not be "classy", but it works.
1) export the registry keys appropriate for WinVNC. i have included ours,
you will need to paste your own password into the file to make it work. you
should be aware that we include the vncviewer.exe file in our installations
and i have included the registry entries to register vncviewer (vncviewer
/register) with the .vnc file extension.
REGEDIT4
[HKEY_CLASSES_ROOT\.vnc]
@="VncViewer.Config"
[HKEY_CLASSES_ROOT\VncViewer.Config]
@="VNCviewer Config File"
[HKEY_CLASSES_ROOT\VncViewer.Config\DefaultIcon]
@="@ProgFiles\\ORL\\VNC\\VNCVIEWER.EXE,0"
[HKEY_CLASSES_ROOT\VncViewer.Config\Shell]
[HKEY_CLASSES_ROOT\VncViewer.Config\Shell\open]
[HKEY_CLASSES_ROOT\VncViewer.Config\Shell\open\command]
@="\"@ProgFiles\\ORL\\VNC\\VNCVIEWER.EXE\" -config \"%1\""
[HKEY_CURRENT_USER\AppEvents\EventLabels\VNCviewerBell]
@="Bell"
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\VNCviewer]
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\VNCviewer\VNCviewerBell]
@="Bell"
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\VNCviewer\VNCviewerBell\.current]
@="ding.wav"
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\VNCviewer\VNCviewerBell\.default]
@="ding.wav"
[HKEY_CURRENT_USER\Software\ORL\VNCviewer]
[HKEY_CURRENT_USER\Software\ORL\VNCviewer\MRU]
"index"=""
[HKEY_CURRENT_USER\Software\ORL]
[HKEY_CURRENT_USER\Software\ORL\VNCHooks]
[HKEY_CURRENT_USER\Software\ORL\VNCHooks\Application_Prefs]
[HKEY_CURRENT_USER\Software\ORL\VNCHooks\Application_Prefs\WinVNC.exe]
"use_Deferral"=dword:00000001
"use_GetUpdateRect"=dword:00000001
"use_KeyPress"=dword:00000001
"use_LButtonUp"=dword:00000001
"use_MButtonUp"=dword:00000001
"use_RButtonUp"=dword:00000001
"use_Timer"=dword:00000000
[HKEY_CURRENT_USER\Software\ORL\WinVNC3]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\WinVNC.Exe]
@="@ProgFiles\\ORL\\VNC\\WinVNC.Exe"
"Path"="@ProgFiles\\ORL\\VNC"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\vncviewer.exe]
@="@ProgFiles\\ORL\\VNC\\VNCVIEWER.EXE"
"Path"="@ProgFiles\\ORL\\VNC"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinV
NC]
"DisplayName"="WinVNC 3.3.2"
"UninstallString"="@WINDOWS\\IsUninst.exe
-f\"@ProgFiles\\ORL\\VNC\\Uninst.isu\""
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL]
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\VNC]
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\VNC\3.3.2]
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3]
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"AllowProperties"=dword:00000000
"AllowShutdown"=dword:00000001
"AutoPortSelect"=dword:00000001
"InputsEnabled"=dword:00000001
"OnlyPollConsole"=dword:00000001
"OnlyPollOnEvent"=dword:00000000
"Password"=hex:blahblahblahblah
"PollForeground"=dword:00000001
"PollFullScreen"=dword:00000000
"PollUnderCursor"=dword:00000000
"SocketConnect"=dword:00000001
2) copy the necessary files to the target machine. omnithread_rt.dll goes
in \system32. the rest of the files go in \program files\orl\vnc. include
your customized registry file.
3) create a batch file that does this:
@echo off
c:
cd \program files\orl\vnc
winvnc.exe -install
cls
4) use AT or WinAT (from NT resource kit) to schedule this command to run
on the workstation.
you may want to include deleting the .reg file when you are finished, though
i find it unnecessary in most cases.
Although this method works fine, we use WinInstall (zenworks on steroids) to
deploy all our software.
hope this helps,
shaun brachmann
systems project leader
kohler company
kohler, wi usa
************************************************
Date: Tue, 11 Apr 2000 11:53:07 +0800
From: "Blyth, John" <John.Blyth "at" health.wa.gov.au>
Subject: Installing across an NT Network
Greetings from Sunny Western Australia,
I have been able to get WINVNC installing quite well across
a NT Network, apart from the final stage of getting it to run as a service,
by running a batch file. The only way I can get the service to work is to
give the user temporary administrator rights, which is inconvenient and
rather dangerous....
Does anyone have a classy solution????
Many Thanks
John
John Blyth
Regional Manager Medical Imaging & Information Technology
Gascoyne Health Service
* Phone: 041 9771178
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------