James, thanks for the clarification.Could you add a bit more detail?
I'd originally submitted my questions to the support center for the
product I own, but never received a response. This list appeared to be the
more active alternative. It's helpful, and appreciated, to have feedback
from RealVNC.

As reference, assume all files are in the same directory c:\vnc, that I
 have
VNC4.3.2 personal edition installed via Administrator and that account
 is
being used for all command-line actions. Also assume that VNC4 was
originally installed as a service, but was later unregistered so as to
 allow
the register-start-stop-unregister cycle to be sequenced at any later
 time
via command-line. So, yes, the HKLM registry values have been
 established.
The objective is to update some of them on each re-invocation of the
 service.

I understand you to say that:

>winvnc4.exe -register

will pick up the config data from HKLM for use when I start the service
 with

>winvnc4.exe -start

This makes sense. However, if the command-line config is available
for the service mode, then I would expect:

>winvnc4.exe -register PortNumber=5950 HTTPPortNumber=5850
- or -
>winvnc4.exe -register -vncconfigfile my_config_file.vnc

...where my_config_file.vnc consists of two lines:
PortNumber=5950
HTTPPortNumber=5850

to work and that either of the above would change (update) the HKLM
to reflect these selections prior to registering the service so that
 when:

>winvnc4.exe -start

is used, after the -register step, invoking the 'Options...' window of
 the
newly running service, or suing:

>vncconfig

(same thing, right?) would show the changes (updates) as specified via
either command-line method.

However, I have not been able to observe this; the config data is only
affected by making the changes manually via the 'Options...' selection
from the VNC Icon or '>vncconvig.exe' window. Is a command-line step
required prior to the -register step to update the HKLM so that the Win
registry is changed before the -register switch is used?

My conclusion has been that I have misunderstood the syntax or
 application
of the syntax with the command-line method but I have been unable to
 locate
explicit examples to show where I made the error(s). Can you point to
 the flaw(s)
in my understanding or methodology?

Thank in advance to anyone with suggestions.

Dave

>
>Hi Derek,
>
>> It appears to me (correct me if I'm wrong, VNC guys) that 
>> there are two ways to run VNC - service mode (with -start, 
>> -register, - unregister, -stop, etc) and in user mode (where 
>> you can specify config parameters on the command line) and 
>> never the twain shall meet. If you specify command line 
>> parameters, they are only used when using VNC in user mode.
>
>You're wrong.  ;)
>
>Both modes support both registry & command-line based configuration
>parameters, although obviously when in Service-Mode the parameters are those
>passed to the program by the Service Control Manager, which are pulled from
>the service's configuration, which is actually in the registry.
>
>Note that the User-Mode and Service-Mode registry settings live in different
>locations, User-Mode settings being per-user and Service-Mode settings being
>per-machine.
>
>Cheers,
>
>--
>Wez @ RealVNC Ltd
>
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to