Wix Open web page when uninstall completes

I’m using Wix3. I need to open a web page when the user uninstalls the product.
Any ideas how it can be done?

Thanks.

callback when web page download completes

When the user click on a tab in a web page, the tab opens and its corresponding page downloads from the server. I want to add some UI in this page through java script or jquery. I know how I can add t

Wix does not uninstall IIS Web Application

I am using Wix 3.5 to build a MSI installer that installs two Web Applications in IIS 7. The user can choose for each application whether to install it under Default Web Site or any other existing W

Uninstall add-on setup when uninstall the Main setup using Wix

I am using wix in my installer, I need to uninstall add-on Setup while uninstall the Main setup, I am using the below code in Main setup wix, <CustomAction Id=UNINSTALL_ADDON Return=asyncNoWait

WIX uninstall error

Whenever I try to uninstall my WIX installation via Add/Remove Programs or the uninstall shortcut I put down with the installation, I keep getting the following error: a network error occurred while

WiX – How to uninstall the bundle when uninstall the msi

Im using WiX to install my .msi, I´m generating a WiX Bundle using the Bundle Element. I try to not show the Bundle on Add/Remove programs so i set the properties of the Bundle element like this: &l

WiX Uninstall cannot stop application unless elevated

I’ve created an installer using WiX and if the user tries to uninstall my application whilst it is still open, they should get the dialog which gives them the option to have the uninstaller close the

WiX uninstall – close application before Restart Manager

I have an installer done with WiX. When it’s done installing, it starts an application that injects some code in the Explorer process. Currently when I uninstall, the Restart Manager kicks in and offe

WiX: uninstall older version of the application

I have installer generated by WiX and I want it to ask: You have already installed this app. Do you want to uninstall it? when run. Currently it installs the app once more and uninstalls it incorrec

Wix + uninstall from control panel + Application runing

I have a Wix solution to install an application. When attempting to uninstall the application from control panel while it is running, a popup is appearing to close the application before continue. The

WiX Burn bootstrapper does not uninstall MSI package

I have created a Wix Burn boostrapper that successfully installs all of the chained packages. When I run uninstall, it doesn’t uninstall the following MSI package. Why? Also, I realized this question

Answers

Add these XML elements somewhere under your <Product> element:

  <CustomAction Id="LaunchBrowser"
        ExeCommand="explorer.exe http://www.google.com"
        Directory="INSTALLDIR"
        Return="asyncNoWait" >
     REMOVE="ALL"
  </CustomAction>

  <InstallExecuteSequence>
     <Custom Action="LaunchBrowser" After="InstallValidate"/>
  </InstallExecuteSequence>

The REMOVE=”ALL” condition will make sure the custom action is executed only if the product is being completely removed.

The After=”InstallValidate” makes sure that the custom action is executed right after the REMOVE property value becomes known.

Here’s a sample of the code we use, we don’t actually set the URL at compile time, but update properties in the MSI post-build so this might seem a little “over engineered”. We use the WiXShellExec CA and have an additional condition so that the webpage is only displayed during uninstall, and not during a major upgrade.

<Fragment>
    <Property Id="MyURL"><![CDATA[http://www.blah.blah.blah/]]></Property>
    <CustomAction Id="SetOpenURL" Property="WixShellExecTarget" Value="[MyURL]" />
    <CustomAction Id="OpenURL" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" Return="ignore" />

    <InstallExecuteSequence>
    	<!-- Launch webpage during full uninstall, but not upgrade -->
    	<Custom Action="SetOpenURL" After="InstallFinalize"><![CDATA[REMOVE ~= "ALL" AND NOT UPGRADINGPRODUCTCODE]]></Custom>
    	<Custom Action="OpenURL" After="SetOpenURL"><![CDATA[REMOVE ~= "ALL" AND NOT UPGRADINGPRODUCTCODE]]></Custom>
    </InstallExecuteSequence>
</Fragment>