Installing mongrel service on Windows 2008
Posted
by akirekadu
on Stack Overflow
See other posts from Stack Overflow
or by akirekadu
Published on 2010-03-25T22:52:32Z
Indexed on
2010/03/26
0:23 UTC
Read the original article
Hit count: 419
We use InstallAnywhere to install our product. One of the components that it needs to install is mongrel. IA invokes the following command line during installation:
mongrel_rails service::install -N service-1 -D "Service 1" -c "C:\app_dir\\rails\rails_apps\service-1" -p 19000 -e production
Apprently under the hoods "sc create..." is used.
The installation works great on Windows 2003. On Windows 2008 though this operation requires elevated privileges.
When I login as local administrator (ie 'local-machine\administrator' user), the installation works just fine. However, when I login as a domain user that is part of local administrators group, the services fails to install with error "access is denied".
How can I make it possible to install the product without having to login as local administrator?
Thanks!
Couple of notes I would like to add. One solution I tried is to execute the installer as administrator. The service does get installed. However, it creates another problem. An embedded 3rd party product and its files get installed with admin only rights. So we do need to run the installer as logged in user.
© Stack Overflow or respective owner