Custom uninstall wizard

May 12, 2016 at 9:47 AM
Hello Oleg,
is there any way to create custom UI wizard when uninstalling product? I know about ModifyDialogs but these run when the installer is started in the Change mode only. How to define dialogs for Uninstall mode?
May 13, 2016 at 1:52 AM
No, unfortunately it's not possible. If your msi file is running against built-in msi host (e.g. msiexec, msi service) the UI for the uninstall sequence cannot be modified and MSI runtime always uses its own set of uninstall dialogs.

The only way out of this if indeed it's what you need is to use your own msi host/launcher. In this case you will be in full control of your UI on all stages.

It's actually is not that difficult. You may want to have a look at the 'External_UI' samples. There are three samples for console, WinForm and WPF UI.

Another, more orthodox way, is to create a custom bootstrapper UI and only include your single msi in it with its own UI disabled. Bootstrapper UI is nothing else but another msi launcher, that's why it is immune to that uninstall-ui suppression msi runtime imposes. The sample you may want to have a look at is 'WixBootstrapper_UI'.

Cheers,
Oleg
Marked as answer by fulbts on 5/30/2016 at 8:18 AM