Run server php scripy on uninstall - Advanced Installer Community

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!

leszek
Posts: 7
Joined: Fri Sep 17, 2010 11:58 am

Run server php scripy on uninstall

We run a php script on our server during the installation, which is lauched from the registration user dialogue.
We would like to also run another script when the product is uninstalled, to give the user a license count back.
There doesn't seem to be a dialog that necesarily runs on uninstall, so how/where can I run the script? Ideally nothing should be displayed to the user, so I don't really want to open a browser window.
Thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Run server php scripy on uninstall

Hello,

You can try using a windows port of the linux's open source wget tool to fetch the web page silently. Set wget as a custom action and configure it to run during uninstall.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
leszek
Posts: 7
Joined: Fri Sep 17, 2010 11:58 am

Re: Run server php scripy on uninstall

The "silent" part is not the most important thing, the main part of the question is that I can't see how to run the script as part of the uninstall. The script run during the install uses HttpPostUrl and HttpPostCollectData (which by the way IS kind of silent), is there a way to do something similar on uninstall?

Or, is there a way to force a dialog to display when the product is uninstalled?

Thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Run server php scripy on uninstall

Hello,

Please note that HttpPostUrl and HttpPostCollectData are UI custom actions. They will not execute if the user decides to run the installer in silent mode. Did you investigate the wget solution I offered?

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”