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
- :
- SdLogonUserInformation and LocalSystem
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 22, 2012
04:13 AM
SdLogonUserInformation and LocalSystem
Hi,
I would like to grant the user the possibility to install the windows service under their desired user account.
I am using the InstallScript MSI-technique so I added the following code in my installscript:
The problem is that I cannot install the Service under the LocalSystem account. When I leave the username and password field empty a dialogue appear telling me NOT to leave the fields empty.
How can I install the windows service under the LocalSystem account while still using the SDLogonUserInformation dialogue?
Thanks in advance
I would like to grant the user the possibility to install the windows service under their desired user account.
I am using the InstallScript MSI-technique so I added the following code in my installscript:
nResult = SdLogonUserInformation ( szTitle , szMsg , szAssociatedAccountName , szAssociatedPassword );
if (nResult = NEXT ) then
MsiSetProperty(ISMSI_HANDLE,"SERVICEUSERNAME", szAssociatedAccountName);
MsiSetProperty(ISMSI_HANDLE,"SERVICEPASSWORD", szAssociatedPassword);
endif;
The problem is that I cannot install the Service under the LocalSystem account. When I leave the username and password field empty a dialogue appear telling me NOT to leave the fields empty.
How can I install the windows service under the LocalSystem account while still using the SDLogonUserInformation dialogue?
Thanks in advance
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 24, 2012
02:40 AM
no one else faced this issue yet?