VNC as windows service

Alex Angelopoulos alex "at" bittnet.com
Wed, 16 Jan 2002 23:19:21 +0000


This is a mess. Here's your problem: you need a password set under HKLM as well as HKU.  Furthermore (and this is the most confusing
aspect of it IMHO) the key is NOT the same subpath.

Password, etc is set under the user key HKCU\Software\ORL\WinVNC3 when you get the VNC server running.  Since this is not loaded
until that user logs on, you also need settings under HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default . NOTE THE EXTRA \DEFAULT
(that threw me the first time).  You need to import settings from the HKCU path to the HKLM path.

Here's a recipe for getting it working under terminal services.
=================================================

-------
(1) Install somewhere. Set it to run as a service, start it up, then export the following subkey while you are still  logged on:
HKCU\Software\ORL\WinVNC3

The Reg file will look something like this:
-
REGEDIT5

[HKEY_CURRENT_USER\Software\ORL\WinVNC3]
"SocketConnect"=dword:00000001
"AutoPortSelect"=dword:00000001
"InputsEnabled"=dword:00000001
"LocalInputsDisabled"=dword:00000000
"QuerySetting"=dword:00000002
"QueryTimeout"=dword:0000000a
"Password"=hex:80,80,80,80,80,80,80,80
"PollUnderCursor"=dword:00000000
"PollForeground"=dword:00000001
"PollFullScreen"=dword:00000000
"OnlyPollConsole"=dword:00000001
"OnlyPollOnEvent"=dword:00000000

-----------------
(2) Edit the header
[HKEY_CURRENT_USER\Software\ORL\WinVNC3]
to become
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]

this will then look like:
-
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"SocketConnect"=dword:00000001
"AutoPortSelect"=dword:00000001
"InputsEnabled"=dword:00000001
"LocalInputsDisabled"=dword:00000000
"QuerySetting"=dword:00000002
"QueryTimeout"=dword:0000000a
"Password"=hex:80,80,80,80,80,80,80,80
"PollUnderCursor"=dword:00000000
"PollForeground"=dword:00000001
"PollFullScreen"=dword:00000000
"OnlyPollConsole"=dword:00000001
"OnlyPollOnEvent"=dword:00000000
-
-----------------
(3) Import the edited HKLM into the registry of the machine.
-----------------
(4) Reboot.  It works.

========================================================
----- Original Message -----
From: "Alex Kramarov" <alex "at" incredimail.com>
To: <vnc-list "at" uk.research.att.com>
Sent: Wednesday/2002 January 16 13:34
Subject: VNC as windows service


: Hi.
:
: I have tried to install VNC as service on a w2k server while being logged in
: using terminal services. this proved to be almost impossible due to the
: fact, that (is far is a can tell), after you install vnc, you can install it
: as service, but when you start the service, it asks for the default settings
: (password and so) by popping up a dialog on the main desktop of the system,
: and i cannot see it and fill that in because i am loggid in to the terminal
: services session, which gives me another desktop.
:
: the only think i was able to do is to copy the registry keys containing
: initial settings from another machine with working vnc as service, and
: importing it to the w2k machine - this worked.
:
: is there some interface to define the settings for the service before
: starting it the first time ?
: is there another logical course of action in this case ?
:
: starting vnc interactively doesn't help - it has different set of settings,
: stored in another place in the registry.
:
: Alex.
: ---------------------------------------------------------------------
: To unsubscribe, mail majordomo "at" uk.research.att.com with the line:
: 'unsubscribe vnc-list' in the message BODY
: See also: http://www.uk.research.att.com/vnc/intouch.html
: ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, mail majordomo "at" uk.research.att.com with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------