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!

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

PHP code for serial number help

I have a script using php to store serial numbers and credentials.

1 = invalid or unsuccessful
-1 = successful or valid

I am writing a script using PHP to get the serial number and credentials. My problem is have a user when they uninstall the program or software, they can't reuse their credentials and serial that was provided. I want to write a script that will allow a user after uninstalling the program to reuse their credentials and serial number to reinstall the program. I have a token system in my script that -1 equals successful serial number and 1 equals invalid credentials. How would I write script for this? :?:

I have used the code already provided by your website. Really helpful. :idea: :arrow:

https://www.advancedinstaller.com/user- ... de-sn.html
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: PHP code for serial number help

Hi,

If you want to send some information to your server when a user uninstalls the product, you can add a "Send install information to your web server" custom action that will be executed only on uninstall.

Based on the information sent by this custom action, you can run a script that will make the appropriate changes to the information stored in your database.

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

Return to “Common Problems”