在 Windows 2008 上安装 mongrel 服务
我们使用 InstallAnywhere 来安装我们的产品。它需要安装的组件之一是 mongrel。 IA 在安装过程中调用以下命令行:
mongrel_rails service::install -N service-1 -D "Service 1" -c "C:\app_dir\\rails\rails_apps\service-1" -p 19000 -e production
显然在幕后使用了“sc create...”。
该安装在 Windows 2003 上运行良好。在 Windows 2008 上,此操作需要提升权限。
当我以本地管理员身份登录(即“本地计算机\管理员”用户)时,安装工作正常。但是,当我以属于本地管理员组的域用户身份登录时,服务无法安装,并出现错误“访问被拒绝”。
如何才能在不以本地管理员身份登录的情况下安装产品?
谢谢!
我想补充几点。我尝试的一种解决方案是以管理员身份执行安装程序。该服务确实已安装。然而,它又产生了另一个问题。嵌入式第 3 方产品及其文件仅以管理员权限安装。因此,我们确实需要以登录用户身份运行安装程序。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以更改安装程序的清单以要求管理员权限才能运行吗?这应该会导致 UAC 提示提升权限,但它仍应以登录用户身份运行。 InstallShield 中有一个设置可以控制这一点,但我不确定 InstallAnywhere 是否如此。
Can you change the installer's manifest to require administrator privileges in order to run? That should cause a UAC prompt to elevate privileges, but it should still run as the logged in user. There is a setting in InstallShield to control this, but I'm not sure about InstallAnywhere.
您是否尝试过降低正在使用的帐户的 UAC 设置? http://www.petri.co.il/disable-uac -in-windows-7.htm 可能是一种资源。
Have you tried dumbing down the UAC setting for the account in use? http://www.petri.co.il/disable-uac-in-windows-7.htm may be a resource.