Gazza
Posts: 2
Joined: Fri Jan 27, 2006 11:50 pm

Uninstall and go to online survey

Hi, I would like to provide an installation that goes to an online survey when the user uninstalls, so I can ask why they uninstalled. I am new and a bit lost as to how to achive this. Any advice would be greatly appreciated. Thanks.
Gazza
sbeckett
Posts: 35
Joined: Thu Aug 25, 2005 12:12 am

What worked for me...

I use an attached custom action for this.

Make a file containing the following code:

Code: Select all

Function UninstURL()
	Dim IE
	Set IE = createobject("InternetExplorer.Application")
	IE.Visible = True
	IE.Navigate "http://www.foobar.com"
End Function
On the custom actions screen, right-click Uninstall and select new attached custom action.

Give "UninstURL" as the function name (no quotes). Set it for Async, do not wait for return (this will ignore any return codes); deferred w/ no impersonation (no need to launch it until the end, and no need to launch as any particular user); and Always execute.

Then in the Expression condition field, put in:

Code: Select all

(REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE))
This condition will make sure it's only run when the code is uninstalled NOT as one step in an upgrade.

It may not be the cleanest or best, but it does work fine.

Anyone know how to set it up so it uses the default browser instead of always launching IE?
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,

Instead of the script, you can also use the "Launch File or Open URL" build in custom action but use the other settings recommended by sbeckett.

You can add such a custom action by right-clicking on the "Uninstall" tree item and using "Add Predefined Custom Actions">"Launch File or Open URL" menu item.

All the best,
Mihai
Mihai Udrea
Advenced Installer Team
sbeckett
Posts: 35
Joined: Thu Aug 25, 2005 12:12 am

Mihai's method works much better, because it launches the default browser instead of hardcoding IE.

Thanks!
Gazza
Posts: 2
Joined: Fri Jan 27, 2006 11:50 pm

That's great, many thanks to you both - very helpful!

Best regards
Gazza

Return to “Common Problems”