I have a mysql table where i store the license that is created randomly. The user has access to its serial key from a profile on the website.
I used the files on this tutorial (Limited number of activations (serial number validations)) http://www.advancedinstaller.com/user-g ... de-sn.html
I have a trigger that generates a new serial number every time the table is changed. I did this to make sure that each serial is used by only the registered person. However i do not want to limit the number of licences for each user.
I use the validation_no field that is changed on serial check to provide the trigger to generate a new serial number.
As the check is made 2 times, and the first check triggers a new serial on the database, when i advance futher on the installation proccess, i get a error saying that the serial number is not valid.
The first check runs just fine.
i followed this tutorial to force only one check http://www.advancedinstaller.com/user-g ... de-sn.html , but i am still having 2 check.
I still have the message that the serial is invalid.
I know that the check is made 2 times even after doing all those steps, because i disabled the trigger that generated the new serial, the program installs correctly, and after the installation is done, i checked the database and in the validation_no field i have the number 2, having started with 0.
On the "Next" button in "UserRegistrationDlg", under Published event i have:
[SERIAL_VALIDATION] ; FALSE ; 1
Validate ProductID Property ; 0 ; 1
Display a specific dialog ; modificacoes ; AI_INSTALL AND (SERIAL_VALIDATION="TRUE")
[ACTIVATED] ; 1; AI_INSTALL AND (SERIAL_VALIDATION="TRUE")
Can you please help me? Is something wrong with the tutorial?
FOLLOW US
Get the latest news in Application Packaging