tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 41564] service.bat does not install tomcat as a service properly on Windows Vista
Date Tue, 26 May 2009 19:09:57 GMT

--- Comment #7 from Will Rowe <>  2009-05-26 12:09:56 PST ---
Reviewing further, I see that service.bat is invoked by the user after install,
and not by the nullsoft installer.

Bogdan is correct in comment #4, however it seems more of a documentation
If the user will be modifying the system environment from a command prompt,
must do so from an admin cmd.exe shell, and there are only two ways to have

1. right click on your cmd.exe ("Command Prompt" icon) and choose "Run as

2. from the shell, invoke

   runas user:administrator "cmd.exe /k"

   which will open a new admin-privileged shell.

There is no way to associate service.bat with elevation via a .manifest or
otherwise.  Only actual .exe's can be associated.  There is a code elevation
model for invoking programs as admin, see the am_RespawnAsUserAdmin() 
implementation within the ApacheMonitor.exe app (which doesn't want to run-as
admin until it is absolutely required, and certainly not hang for a permission
change each time the user logs in!)

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message