12.6 AI User Creation potentially ignoring condition bug. - Advanced Installer Community
mumbles76
Posts: 29
Joined: Mon Nov 16, 2015 7:29 pm

12.6 AI User Creation potentially ignoring condition bug.

Hello All,

In my installer, i have a user account being created. However, i only want this account created during initial install. Not during upgrades.

So i've assigned the condition (NOT Installed) to the user account creation. However during upgrades we are experiencing errors:

Code: Select all

: AI_CreateAccount. Creating user account on the local computer
MSI (s) (44:9C) [21:36:46:080]: Executing op: CustomActionSchedule(Action=AI_CreateAccount,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (44:4C) [21:36:46:095]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI2A60.tmp, Entrypoint: CreateAccount
AI_CreateAccount: Account: svcApp
Error 4101. Unable to create user account or group 'svcApp' on the local machine. Error Code: 2245. The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.

MSI (s) (44!74) [21:36:55:346]: Product: AgeonISR -- Error 4101. Unable to create user account or group 'svcApp' on the local machine. Error Code: 2245. The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.


CustomAction AI_CreateAccount returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 21:36:55: InstallExecute. Return value 3.
MSI (s) (44:9C) [21:36:55:362]: User policy value 'DisableRollback' is 0
Naturally, the password isn't going to meet the requirements since on upgrade, i'm guessing its blank.

One thing to note, we set the password for this user via an installer ui text edit box.

But my understanding is that if the condition for the user is set to Not Installed, then this shouldn't matter. Please advise, thanks.
mumbles76
Posts: 29
Joined: Mon Nov 16, 2015 7:29 pm

Re: 12.6 AI User Creation potentially ignoring condition bug.

Emailed support with the full log file.
mumbles76
Posts: 29
Joined: Mon Nov 16, 2015 7:29 pm

Re: 12.6 AI User Creation potentially ignoring condition bug.

NOT OLDPRODUCTS was the condition i needed to set. Got it, thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: 12.6 AI User Creation potentially ignoring condition bug.

Hello,

Indeed, the OLDPRODUCT property can be used in your case. This property is set only in a package which upgrades another package.

Since you don't want to create the related user during an upgrade, you need to use the NOT OLDPRODUCT as a condition.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”