Uninstall Offer - Inno Setup
Jul 5th, 2007 by admin
Uninstaller Offer
At uninstall time, and IF the user hasn’t already registered the product, make a TrialPay pitch.
Like this….
It took a while to figure out how to do this in Inno Setup, but I did it using CreateCustomForm(), called from InitializeUninstall(). I have separated the text, and it’s driven by a .RTF file. I’m making it available free for all Inno users, and the source is here.
Designing forms for CreateCustomForm is tedious, and hopefully you can make use of my code. Adrian Silasi on the Inno Setup forum has suggested some improvements, and I am going to look into that shortly.
The code basically works like this:
At Uninstall time (InitializeUninstall), call the routine to show the TrialPay dialog. If they say YES to the dialog (they’re interested in learning more), then abort the uninstall, and launch a URL to your site, where you tell them more. If they say no, then uninstall as usual.
In the demo, you’ll see other code in InitializeUninstall(), commented out. This is where I avoid showing the TrialPay offer to users who have already registered, or who only used the program for a brief time. I figure that if they use it for at least 15 days but haven’t registered, then they are a good candidate for TrialPay.
The AskTrialPay() function is where the form creation stuff is done. It’s tedious stuff. See the accompanying annotated .jpg in the ZIP for a map of what goes where.
Download the sample file here. (v1.1.00 - July 12, 2007)


Zip file updated to 1.1.00, to fix sizing problem pointed out by Adrian Silasi
BTW, the “Yes, Tell me more!” link goes to:
http://www.thornsoft.com/trialpay.htm