No error dialog on invalid serial - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

JShumaker
Posts: 3
Joined: Tue Mar 06, 2012 12:00 am

No error dialog on invalid serial

I recently upgraded an older Advanced Installer project from version 6.9.1 to 8.9. After doing so I've found when entering in a serial number if you enter in one that is wrong and click next nothing happens. It doesn't advanced forward which is good, but it also does not pop up a dialog saying something like "Invalid key" that it did previously. It's using server side validation if that matters. I sit possible to make it report the error dialog again?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: No error dialog on invalid serial

Hi and welcome to Advanced Installer forums,

The default behavior should show an "Invalid serial number." Error dialog in this case. Is this error message skipped?

As a workaround you can try to use a "SpawnDialog" published event on the "Next" button. You should condition it using:

Code: Select all

SERIAL_VALIDATION="FALSE"
Just make sure it's placed after ValidateProductID and before NewDialog event.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JShumaker
Posts: 3
Joined: Tue Mar 06, 2012 12:00 am

Re: No error dialog on invalid serial

Thanks, I'll give this a try. It's only displaying the "Invalid Key" dialog if I try to click next before typing anything into the text boxes. Once something has been typed into them and next clicked, it won't display the error and doesn't display the error even after clearing them at that point. It does however work once a proper key is entered.
JShumaker
Posts: 3
Joined: Tue Mar 06, 2012 12:00 am

Re: No error dialog on invalid serial

Well crafting a custom dialog and having that trigger on the next button worked well. If they hit next without typing anything they get the 2 errors, but I can live with that as long as they get the 1 custom error dialog I created for all other instances.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: No error dialog on invalid serial

Hello,
It's only displaying the "Invalid Key" dialog if I try to click next before typing anything into the text boxes. Once something has been typed into them and next clicked, it won't display the error and doesn't display the error even after clearing them at that point. It does however work once a proper key is entered.
This shouldn't happen, that error message should be displayed only when an invalid key is input. Can you please send us the .AIP (project) to support at advancedinstaller dot com so we can replicate the issue?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”