|
From: Leif M. <le...@ta...> - 2003-09-05 08:49:57
|
Max,
Could you be more specific about what properties you modified and what
registry entries you had to manually delete? Also can you verify that you
are using the batch files shipped with the Wrapper to install and remove the
service?
Also what is the exact "problem" that you are having installing the
application as a service. Is it that your service name is invalid? If so
what
is the service name that you are trying to set?
I went back and retested the Wrapper's handling of the registry. When
you install the Wrapper, it adds an entry at the following location:
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{servicename}
Then when you remove the service, the above entry is removed completely.
No garbage is left behind in the Registry. Rare for a "Windows program :-)
One exception is if you are logging to the Event Log. If and only if you
have the wrapper.syslog.loglevel property set to a level other than NONE,
a registry entry is added at the following location:
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\{servicename}
This registry entry is created even if the application is run only as a
console
app. The registry entry is never deleted by the Wrapper as doing so would
cause the EventLog application to popup errors when attempting to view the
logged entries.
I am trying to get version 3.0.5 out the door and want to make sure that
I don't have an outstanding bug here.
Cheers,
Leif
Max Stolyarov wrote:
>Leif,
>
> Thanks for the reply. I understand what you are saying and after more
>testing that I did yesterday, I am starting to feel that the configuration
>file is not an issue here. At this stage of testing I feel that the problem
>that I am experiencing has something to do with deployment and removal of NT
>services. This is what I have done:
>
>1. I modified my wrapper Config properties (NT service properties).
>2. Ran your bat file to deploy the wrapper and install the service.
>3. Ran another bat file to stop and remove the service.
>4. Modified NT properties again in the wrapper configuration file
>5. Ran a bat file to deploy a service. At this point, I get an exception in
>the command windows that informs me that the service name is invalid.
>6. I poked around in the registry, and I feel that the bat file that I use
>to stop and remove the NT service is not doing a good job in removing the
>service entries from the registry. Am saying this because, when I removed
>couple of the registry entries related to the first service, I was able to
>deploy the new service. I will let you know, with more testing what registry
>key remain and needs to be removed. If you have some idea what I need to try
>please let me know. Thanks
>
>Thanks
>
>Max
>
>
|