Running: Advanced Installer 5.2.2
Running: built installation on Windows Installer 3.0, WinXP SP2
Short story: the ProductID property is not deleted before ValidateProductID event is published. If the serial number is validated more than once, and the first attempt succeded, the ProductID property remains set during subsequent validations.
The implications of this behavior are simple: if the end user comes back to the UserRegistrationDlg dialog and changes the serial number, the changes effectively bypass the template validation in ValidateProductID event. The warning message box is displayed, but the stock events in the Next button are authored in such a way that this template validation has no effect. The AI_VALID_SERIAL action is still called, though.
If you author your install to accept any serials that fit the template, you can get invalid serials sneaking in.
Also note, that simply deleting the ProductID property before ValidateProductID event is not sufficient. If you only do that, then the changed serials will even bypass the AI_VALID_SERIAL action.
FOLLOW US
Get the latest news in Application Packaging