cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
san_bsw
Level 3

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:


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
Labels (1)
0 Kudos
(1) Reply
san_bsw
Level 3

no one else faced this issue yet?
0 Kudos