I have added your default UserRegistrationDlg to perform a sever-side validation. It works as expected if I enter the correct serial number. It's when the serial number is incorrect or the PIDKEY edit box is empty I encounter issues with two scenarios:
If I enter the wrong serial number in the PIDKEY edit box I do get the "Invalid serial number" message as expected. I press OK and the installer takes me to the next Dialog instead of remaining on the UsrRegistrationDlg to input the correct serial number.
If the PIDKEY Edit Box is empty and I press the Next button, I also get the "Invalid serial number" message which I would expect. I press OK and the installer takes me to the next Dialog instead of remaining on the UsrRegistrationDlg to add the correct serial number.
I have created a spawned Dlg to inform the user there are blank fields but the message appears after the installer has proceeded to the next dialog. Changing the events order appears to have no impact either? Is the Execute custom action - AI_VALID_SERIAL in the Published Events a hard-coded action?
How can I remain on the UserRegistrationDlg until the PIDKEY is not empty and is correct before continuing to the next dialog?
FOLLOW US
Get the latest news in Application Packaging