Hallo Konstantin,
On 11/19/2010 06:14 PM, Konstantin Kolinko wrote:
> b) You cannot install the service twice with the same name. (The
> second and later attempts will fail with the same generic message as
> above). Try "service.bat remove" first. Verify that it is not listed
> as a service (in the Control Panel of Windows). (I had several times
> when uninstall did not complete until I rebooted).
I came across this problem on different Windows versions: Deinstalling
the service was successful, but the service is still listed under
"Control Panel -> Services". Additionally running the windows command
line tool sc [0], always gives a message like "service is marked for
deletion". One reason for this can be (as mentioned under [1]):
a) Service still running during uninstallation
b) Other processes with "open handles" to the service uninstallation, e.g.:
- Service Wrapper Admin Windows (default: tomcat6w.exe) (often
another User Session with the Service Wrapper Icon in System Tray)
- Control Panel -> Services open
After closing all processes with an open handle the service gets deleted
immediately, so no reboot is necessary. I'm not aware of an easy method
to obtain a list of processes with an open handle. Maybe a windows
expert can shed a light on this.
[0] http://technet.microsoft.com/en-us/library/cc754599%28WS.10%29.aspx
[1] http://technet.microsoft.com/en-us/library/cc742045%28WS.10%29.aspx
Best regards,
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]