NikolaTesla
Posts: 6
Joined: Tue Jul 23, 2019 3:22 pm

Custom action that limits usage or PHP file

Hello


So I am trying to create a custom action or edit the php file that will limit the number of times the serial number could be used for a user?
For example, lets say I have assigned a serial number to this one user but the user uninstalls the software so in the database it will show usage as -1. Later, when they decided to reinstall the software using the same serial it will go to 0 token. Thanks for your help.
Last edited by NikolaTesla on Thu Aug 08, 2019 5:08 pm, edited 1 time in total.
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom action that limits usage or PHP file

Hi,

In order to achieve this you can use the "Send install information to your web server" predefined custom action to send, during the uninstall, the information you need to your web server which will make the necessary modifications to the database table.

For example, during the uninstall, you send the user's license key to a PHP script from your server and that script resets the validation number related to that key in the database.

You can take a look on the "Help With Updater License Check" thread where is discussed a similar scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”