View Full Version : Install Service to a user account

07-03-2006, 04:50 PM
I really apeciated if someone can help me with that.
I want to install a service to a user account. I use SdLogonuserInformation dialog to specify a user account and a password for the service. The problem is i don't know how to get credentials of szAccount and szPassword, write to property table and then when service is to be installed use them.
I do the following:
set [ACCOUNT] and [PASSWORD] in User Name and Password of service to be installed


szTitle = "";
nResult = SdLogonUserInformation(szTitle, szMsg, szAccount, szPassword);
if (nResult = BACK)then goto Dlg_Serial;endif;
if (nResult = NEXT) then goto Dlg_XXX;endif;
if(szAccount !="" && szPassword != "") then
MsiSetProperty(ISMSI_HANDLE, "ACCOUNT", svUser);
MsiSetProperty(ISMSI_HANDLE, "PASSWORD", svPassword);

Service is installed, no warnings or anything but not with credentials i specified, always use system account even if i specify different credentials or make a new user.

What i'm doing wrong ?

07-04-2006, 03:10 AM
Nobody ? :(