AllanW
Posts: 20
Joined: Thu Feb 18, 2010 11:42 pm

Problem with Serial Number in User Registration dialog

I have an install that was built with AI 13.4 (according to the project file) that worked well but a couple of additional files needed to be added so I built a new version using AI 14.0.2, which was the current version. I made no other changes to the project. We now find that the Serial Number field in the User Registration dialog displays as a single edit box instead of the separate boxes created based on the PIDTemplate property (I use "<CD###-###-####-???>" as a template so I previously saw 4 edit boxes) and any attempt to enter a serial number causes the "Invalid character" message to display.

Has something changed since 13.4 that would cause this behavior? If so, do you have any suggestions on what I could change to correct the problem? The Serial Validation uses "User defined validation", if that makes any difference.

Thanks very much for any help
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem with Serial Number in User Registration dialog

Hi,

The "Serial Number" field is displayed as a single edit box in a package that have the "Enhanced User Interface" option enabled in the "Themes" page, "Settings" tab. This option is used automatically in an EXE package created with version 14.0.2 and it cannot be disabled. However, all the validations of a "Masked Edit" control are kept.

Please note that the masked edit can receive only a digit where "#" is used and a digit or a character where "?" is used. Are you sure that you do not try to type a character where the "#" sign is used? If so, can you please send me the .AIP (project file) to support at advancedinstaller dot com, so I can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AllanW
Posts: 20
Joined: Thu Feb 18, 2010 11:42 pm

Re: Problem with Serial Number in User Registration dialog

That makes sense. The change in the layout of the Serial Number field was a bit of a surprise but not a problem now that it's been explained. It seems, though, that how the edit box handles text entry is somewhat different now, which is what was causing some concern.

My PIDTemplate expects that the serial number will start with "CD" and if I enter that ("CD" in upper case) the text is accepted with no problem but if I enter, for instance, "c" (lower case) or any other character, the text is changed to "C" (upper case) and an error message ("You can only type a separator character here") is displayed. The same happens for the "D" if I try entering "d" or any other character. Previously, entering "cd" just replaced the text with "CD" with no comment so the change was a bit of a surprise. I changed the PIDTemplate to "<??###-###-####-???>" and that seems to have returned the behavior to something close to what we had originally (except that the first two characters don't immediately change to upper-case...not really a problem, I figure) so I think we're back in business since my serial validation function converts the first two characters to upper-case before checking that they're correct, anyway.

Thanks for the help and for the quick reply.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem with Serial Number in User Registration dialog

You're welcome. I'm glad you solved the problem

In the next version of Advanced Installer, the possibility of disabling the Enhanced UI in an EXE package will be reintroduced and have the old masked edit layout will be available again in this case.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”