Grant “Log on as a service” permission AND service Logon Account during installation(Installshield 2010)

荒凉一梦 提交于 2019-12-11 02:28:23

问题


I`m developing install application via Installshield Basic MSI Project

  1. I have a little problem when granting "Log on as a service" permission (Control panel -> Administrative tools -> Local Security Settings)

In Windows server 2003, NTRights.exe works fine.

In Windows server 2008 and 2008 R2, NTRight.exe also works fine but "NTRights.exe" is just part of "Windows server 2003 Toolkit"

I want to use another method. Can Anyone do same thing using another way?

  1. In a Service Panel, I have to set Logon account and password using end user input.

But Installshield supports just fixed id, password. It cannot be used.

How can i do this to set logon account? Logon account information should be provided during installation


回答1:


Check out this article. Once you understand it, just change it up a bit by using information from the second link.

Augmenting InstallShield using Windows Installer XML - Certificates

User Element (Util Extension)

Another approach using a WiX DTF custom action can be found at:

Different year, Same Problem...



来源:https://stackoverflow.com/questions/4787135/grant-log-on-as-a-service-permission-and-service-logon-account-during-installa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!