Assassin
Posts: 19
Joined: Sun Jan 29, 2012 11:06 pm

Custom Licensing Form - Valid Key Before Write to Registry

:mrgreen:
So ive successfully developed my own licensing form and such things stated in my previous forum post.
So now my program licensing system is fully integrated into advanced installer there is one slight issue im having
and im not sure if this can be solved.

The Normal Dialog - You enter key it checks if it is valid then writes to the registry to validate program and tells you if its invalid with a message-box
Image

My Custom Dialog - You enter key and it writes to registry and if the application restarts as registered you entered the correct code
Image

So my question is , Is there a way to get a dialog to trigger on my custom form telling the user if the key they entered is valid or invalid before its written to the registry
all that is missing from my licensing is an alert to tell the user if the key they entered is valid. :geek:

If you guys help me with this I will be grateful as I can then release my application to the public and sell it :lol:
Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Licensing Form - Valid Key Before Write to Regist

Hello,

I discussed the issue with our development team and here what you can try in big lines:
- Use your own code to write the license key in the registry instead of ours. Escaping FYI: use \1 for \r(carriage return ASCII code 13) and \2 for \n(new line ASCII code 10).
- Afterwards call our Init function again and depending on the result show your custom dialog.

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

Return to “Common Problems”