Install mongrel service in Windows 2008

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.

+4
source share
2 answers

Can you change the manifest of the installer to require administrator privileges to run? This should trigger a UAC prompt to elevate privileges, but it should still run as a registered user. InstallShield has a setting to control this, but I'm not sure about InstallAnywhere.

0
source

Have you tried disabling UAC for your account? http://www.petri.co.il/disable-uac-in-windows-7.htm may be a resource.

-1
source

Source: https://habr.com/ru/post/1305170/


All Articles