mzoran
Posts: 2
Joined: Sun Nov 28, 2004 1:33 am

Serial Number Template

Where can I find more details on the forms accepted for the serial number template in the User Registration dialog?

I currently use the form: <?????-?????-?????-?????-?????>

From experiment I have found that '?' allows any number or alpha character. Other template parameters supported are '#' and '%'.

1) Is there any template parameter that forces uppercase characters or numbers?

2) Is there documentation explaining all supported forms of the template?

Thank You
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Hello,

The serial number template is documented in the Windows Installer SDK available from Microsoft in MSDN as part of the Windows Platform SDK.

Best regards,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Serial Number Template

Hi

I was just doing a serach for this particular thing in the forums and came across this post, so rather than start a new one I thought I'd bump it up.

Is there any way (using an enterprise edition as that's the only one that will allow dialog editing, that we can force the masked edit to convert to uppercase. I know that it AI is in reality case insensitive when it comes to serial numbers, which is actually great becuase it means than non touch typists don't have to think when entering a long serial number, but as the serial number generator produces all uppercase serial combinations it would be a nice touch to have an automatic case conversion as the serial is entered.

Now I appreciate that those people who may use their own serial validation by means of a bundled dll or server side validation may not want a permanent uppercase mask, so so means of altering it per project would be really nice.

Is there a way to do this at present that I have somehow overlooked or if not could it be added to the feature requests for inclusion in a future release.

Dom
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: Serial Number Template

Hi Dom,

The Windows Installer documentation for the Masked Edit control is available here. Not all those characters are permitted in the "Template Value" field, but for testing purposes you can create a new Masked Edit control.

From out investigations, it is not possible to convert the letters automatically to uppercase, but please let me know if you find a way of doing this.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”