This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Setting up service Username/Password at install time
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 28, 2011
03:07 AM
Setting up service Username/Password at install time
I am using a Basic MSI project to install a service that requires the run time logon credentials to be set at install time. The Username/Password are set into variables ([IS_NET_API_LOGON_USERNAME] and [IS_NET_API_LOGON_PASSWORD] resp.) via a dialog during the install process.
I have set the project service settings Username/password to use the same variables above. The password however is displayed as a row of asterisks but looking into the Service Install table I can see this is set to use my password variable.
The install complains that it can't start the service. On inspection I can see that the Username has been set correctly but I suspect the password is wrong. My suspicion is that it is interpreting [IS_NET_API_LOGON_PASSWORD] literally because if I hand edit the service password to the correct value the service starts.
Has anyone encountered this before and have a work-around for this password setting problem?
I have set the project service settings Username/password to use the same variables above. The password however is displayed as a row of asterisks but looking into the Service Install table I can see this is set to use my password variable.
The install complains that it can't start the service. On inspection I can see that the Username has been set correctly but I suspect the password is wrong. My suspicion is that it is interpreting [IS_NET_API_LOGON_PASSWORD] literally because if I hand edit the service password to the correct value the service starts.
Has anyone encountered this before and have a work-around for this password setting problem?
(2) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 28, 2011
05:10 AM
Resolved this - it wasn't a problem with the password afterall. The service logon credentials I was using did not have "logon as a service" right. Fixed this and then it all worked fine.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 08, 2014
07:44 AM
I'm trying to set service Username/Password from variables ([IS_NET_API_LOGON_USERNAME] and [IS_NET_API_LOGON_PASSWORD]. But it's throwing me error while installation. Could you pls. help to set service Username/Password with property instead of hardcoded value?
Thanks
Thanks