Licensing - Advanced Installer Community
JLavalley
Posts: 38
Joined: Tue Mar 03, 2009 7:28 pm

Licensing

I am attempting to use Server-side validation.. however, my serial numbers are not a uniform length, so the Template is causing all entries to fail before it is validated by my URL.

Can I ignore the template or set the template to accept variable length keys?
- Jerome
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Licensing

Hello,

I'm afraid we don't have predefined support for this requirement, but here is what workaround you can try:

1. go to "Dialogs" page and delete the existing masked edit control and add instead an edit box control using as its associated property the following proerty: PIDKEY
2. select the [Next] button of the "UserRegsitrationDlg" dialog and go to its "Published Events" tab
3. check the "Show all events" option
4. edit the "Condition" field of the first two events in the list ([SERIAL_VALIDATION] and Validate ProductID property) to use a false condition, for instance:

Code: Select all

1=2
5. edit the "Condition" field of the "Execute a custom action -> AI_VALID_SERIAL" event to be always true, for instance:

Code: Select all

1
6. rebuild and test the setup

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JLavalley
Posts: 38
Joined: Tue Mar 03, 2009 7:28 pm

Re: Licensing

Unfortunately, I could not make this workaround work.
- Jerome
JLavalley
Posts: 38
Joined: Tue Mar 03, 2009 7:28 pm

Re: Licensing

I tried this again and it works! (not sure what I did wrong last time)

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

Re: Licensing

You're always welcome.

I'm glad you got this working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JLavalley
Posts: 38
Joined: Tue Mar 03, 2009 7:28 pm

Re: Licensing

I spoke too soon.. I was assuming that if I got to the "installing" portion, it would work. However, I was incorrect. I can get past the UserRegistrionDlg, but then during the installation, I get pretty far, and suddenly get an "Invalid Serial Number" message.

Any other guidance?
- Jerome
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Licensing

Hello,

Indeed, this happens because we also do a license key format check during the "Install Execution Stage". To disable this check please go to "Custom Actions" page and add a "Set installer property" action with sequence, scheduled before "Install Execution Stage -> Searches" action group, like this:
  • Property: ProductID
    Value: 1
Let me know how this works.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JLavalley
Posts: 38
Joined: Tue Mar 03, 2009 7:28 pm

Re: Licensing

I still get the "Invalid Serial Number" box during the installation.

I've attached my test .aip file - in case it helps.
Attachments
Activation Test.aip
(59.66 KiB) Downloaded 552 times
- Jerome
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Licensing

Hello,

I've further investigated this an it seems the "[SERIAL_VALIDATION] -> FALSE" published event from [Next] button should not be skipped. This was my fault. Sorry for that. Can you please go to "Dialogs" page, select the [Next] button of "UserRegistrationDlg" dialog and revert the condition of the "[SERIAL_VALIDATION] -> FALSE" published event to

Code: Select all

1
Then rebuild and test again the setup project?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JLavalley
Posts: 38
Joined: Tue Mar 03, 2009 7:28 pm

Re: Licensing

That did it. This time I tested all the way through to completion.

Thanks for all your help!
- Jerome
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Licensing

You're always welcome.

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

Return to “Common Problems”