adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

AI_SetLogOnAsService failure

Wed Nov 04, 2015 3:02 am

In our .aip we're assigning this same user to two WCF services, however we get a failure any time we try to do so whether or not the user already has the Log on as a service right:

Code: Select all

MSI (c) (78:1C) [17:50:19:165]: Product installation will be elevated because user is admin and product is being installed per-machine.
MSI (c) (78:1C) [17:50:19:165]: Running product '{EC430F63-8B9A-4C6B-9E67-B3A18B1AC570}' with elevated privileges: Product is assigned.
...
MSI (s) (60:90) [17:50:51:585]: Executing op: CustomActionSchedule(Action=AI_SetLogOnAsService,ActionType=3073,Source=BinaryData,Target=LogOnAsAService,CustomActionData=user@domain.com)
MSI (s) (60:A0) [17:50:51:587]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIADE5.tmp, Entrypoint: LogOnAsAService
CustomAction AI_SetLogOnAsService returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 17:50:52: InstallExecute. Return value 3.
Does this need the username to be domain\user rather than user@domain.com? The formatting works fine for assignment to the service, so it seems like it shouldn't be an issue here (although if that IS indeed the case, I can work around it). It works fine without attempting to assign the rights.

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: AI_SetLogOnAsService failure

Wed Nov 04, 2015 8:37 am

Hello,

Yes, the service account start name should be written using the <Domain_Name>\<User_name> format.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Re: AI_SetLogOnAsService failure

Fri Nov 20, 2015 4:13 am

This was indeed the fix. Thank you!

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: AI_SetLogOnAsService failure

Fri Nov 20, 2015 9:07 am

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”