To achieve this, I added the following "Published event" to the dialog's "Next" button:
- Execute custom action "CheckIfUserExists"
Further, to the predefined event "Display a specific dialog", I added the condition
Code: Select all
(AI_USER_EXIST="Yes" AND AI_USER_VALID_PASSWORD="Yes")
I must have gotten something wrong because I never get beyond this dialog.
For debugging, I added a text control to the dialog. Its property name is TEXT_6_PROP (by default) with the default content "Text". I added the following event to the "Next" button:
- Set installer property value TEXT_6_PROP, argument=[AI_USER_EXIST]
and, just to be on the safe side:
- Refresh the current dialog
However, the text control remains at "Text" all the time although AI_USER_EXIST should be either "Yes" or "No" when I click the "Next" button. What's wrong?
By the way, I suspect that the problem may be that the USER_NAME variable contains a string like "domain\username", but that is another problem that can be addressed later.