We use InstallAnywhere to install our product. One of the components that you need to install is mongrel. IA calls the following command 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
Apparently, "sc create ..." is used under the hoods.
Installation works fine in Windows 2003. In Windows 2008, this operation requires elevated privileges.
When I log in as a local administrator (that is, the user "local computer \ administrator"), the installation works very well. However, when I log in as a user of a domain that is a member of the local administrators group, services cannot install with an "access denied" error.
How can I install the product without having to log in as a local administrator?
Thanks!
A few notes that I would like to add. One of the solutions I tried is to execute the installer as an administrator. The service is being installed. However, this creates another problem. The embedded third-party product and its files are installed with administrator rights. Therefore, we need to run the installer as a registered user.
source share