I looked at http://www.advancedinstaller.com/user-g ... ialog.html but that doesn't explain the change I'm experiencing between the two versions of AdvancedInstaller.
I have two dialogs that I created:
The first is "ScheduledTasksDlg" and the second that comes after it is "BackupDlg".
What I'm doing is, I let the User enter some details (user name and password) in the "ScheduleTaskDlg" and when he presses the "next" button to proceed to the "BackupDlg", I first verify (using property USER_VALIDATION_SUCCEEDED) these details (user/pass), and if valid: he will continue to the "BackupDlg" and if not: a popup window will appear ("your" SpawnDialog with modified text) asking him to re-enter his details since they were incorrect. This also causes him to return/remain on the "ScheduledTaskDlg" (as expected).
So all this works, and has been working on AI 7.7 (to my satisfaction).
The sequence in the "Published Events" for the "next" button is this:
Code: Select all
Event Argument Condition
-------- ------------- ------------------------
DoAction UIValidateUser AI_INSTALL
SpawnDialog SpawnDialog AI_INSTALL AND ( USER_VALIDATION_SUCCEEDED<>"TRUE" )
NewDialog BackupDlg AI_INSTALL
In order to change this behaviour, I had to change the sequence (on the "next" button) like this (for AI 8.0.2):
Code: Select all
Event Argument Condition
-------- ------------- ------------------------
DoAction UIValidateUser AI_INSTALL
NewDialog BackupDlg AI_INSTALL
SpawnDialog SpawnDialog AI_INSTALL AND ( USER_VALIDATION_SUCCEEDED<>"TRUE" )
But the truth is that it DOESN'T! This actually works!
So for AI 8.0.2: my "UIValidateUser" custom action is run FIRST, and then if "USER_VALIDATION_SUCCEEDED<>"TRUE"" then "SpawnDialog SpawnDialog AI_INSTALL AND ( USER_VALIDATION_SUCCEEDED<>"TRUE" )"
is run and NOT "NewDialog BackupDlg AI_INSTALL" which is really NEXT in the sequence!!!
So like I said: I changed the sequence to make things work for 8.0.2: but I really don't understand why it should be like this, and not like (it made sense!) in AI 7.7! (meaning: first test, then if failed spawndialog and only if success then NewDialog - meaning: the sequence is NOT in sequence!!!).
What I wrote might be a bit long because I wanted to be as clear as possible.
Waiting for your help on understanding this one, Dashut.
P.S: Is this a bug in 8.0.2?
FOLLOW US
Get the latest news in Application Packaging