LogonInformationDlg possible bug [Advanced Installer 12.0] - Advanced Installer Community
mbjeff
Posts: 4
Joined: Mon Mar 30, 2015 7:45 pm

LogonInformationDlg possible bug [Advanced Installer 12.0]

I recently updated from Advanced Installer 11.9 to 12.0. The installer I'm building uses the LogonInformationDlg dialog, and the associated CheckIfUserExists custom action is using the "Check user account's password" option. This worked as expected with version 11.9, however with 12.0 verification of passwords no longer works.

I've attached a sample aip file that demonstrates the problem. The credentials will fail unless a correct username and domain are used, however, the AI_USER_VALID_PASSWORD property seems to be getting set for any password that is used. Note: the attached .aip also includes a published event to force AI_USER_CHECK_PASSWORD to 1, which should already be done via the "Check user account's password" option... I added that to see if it fixed the password check, but it didn't.
Attachments
Your Application.aip
Sample use of LogonInformationDlg
(18.13 KiB) Downloaded 196 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: LogonInformationDlg possible bug [Advanced Installer 12.

Hello,

This happens because you are using wrong condition for your "Display a specific dialog" control events added on [Next>] button from "LogonInformationDlg". Please keep in mind that when the username and/or password are wrong the "AI_USER_EXISTS" and "AI_USER_VALID_PASSWORD" properties will be set to "no". Therefore the following condition is TRUE:

Code: Select all

AI_USER_EXISTS AND AI_USER_VALID_PASSWORD
because both properties are set. The above condition will be false when at least one properties is empty (not set).

To achieve what you want you should use a control event condition like this:

Code: Select all

(AI_USER_EXISTS = "Yes") AND (AI_USER_VALID_PASSWORD = "Yes")
I've edited and attached your .aip so it uses correct conditions.
Your Application.aip
(18.21 KiB) Downloaded 207 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mbjeff
Posts: 4
Joined: Mon Mar 30, 2015 7:45 pm

Re: LogonInformationDlg possible bug [Advanced Installer 12.

Ah! I was under the impression that if AI_USER_VALID_PASSWORD was set to "No" that condition tests would be FALSE. Did this use to be true under 11.9? Regardless, it doesn't matter -- I'll update my condition test as you said. Thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: LogonInformationDlg possible bug [Advanced Installer 12.

You're welcome.
Did this use to be true under 11.9?
Yes.

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

Return to “Common Problems”