Serial Key with combination of diff Textbox(Mask Edit) - 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!

atulthummar
Posts: 37
Joined: Fri Dec 21, 2012 7:48 am

Serial Key with combination of diff Textbox(Mask Edit)

Hi,

We have user serial key validation, so that "UserRegistrationDlg" having Serial Key with Single Text box.

we want separate four text box because our key is like (<###-###-###-###>).

We have to use themes with Enhance user interface so what will be resolution ?

Thanks,
Atul
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Serial Key with combination of diff Textbox(Mask Edit)

Hello Atul,

In order to achieve this just disable our "Enhanced User Interface" feature, and then build and run your project. Also, please keep in mind that you can use a serial number like this <###-###-###-###> when the Enhanced User Interface" feature is enabled. In this case the "Serial Number" field from "UserRegistrationDlg" would contain a single text box and the serial number needs to be input in this field as it is generated on the serial validation page, including the '-' character.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
atulthummar
Posts: 37
Joined: Fri Dec 21, 2012 7:48 am

Re: Serial Key with combination of diff Textbox(Mask Edit)

Hi,

is there any ways to do?,We have use "Spring/Radiant Turquoise" Theme by default.

Thanks,
Atul
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Serial Key with combination of diff Textbox(Mask Edit)

Hello Atul,

As a workaround you can proceed as following:
- Go to "Dialogs page -> UserRegistrationDlg", remove the masked edit control under the "Serial Number" static text control and add four masked edit controls like this:
  • Property Name: M1

    Property Name: M2

    Property Name: M3

    Property Name: M4
For each of the above masked edit controls add the following control conditions:
  • Condition: SERIAL_VALIDATION="TRUE"
    Action: Disable

    Condition: (NOT AIEXTERNALUI) OR (AI_IE_Ver < "6")
    Action: Show
- Select the [Next>] button and add the following published event (as first item in the "Published Events" tab):
  • Name: [PIDKEY]
    Argument: [M1]-[M2]-[M3]-[M4]
- Go to "spring\resources\html\" Advanced Installer installation folder (e.g. C:\Program Files (x86)\Caphyon\Advanced Installer 9.8\themes\spring\resources\html) and from userreg.html file remove the following part:

Code: Select all

<input class="myEdit" formatted="true" id="PIDKEY" style="visibility: hidden;" type="text"
 value="[PIDKEY]" />
- Build and run your project.

Also, please keep in mind this isn't exactly a professional approach. However, we have added this improvement on our TODO list and it will be available in a future version of Advanced Installer.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”