Bootstrapper, .MSI Uninstall UI doesn't show

Sep 29, 2015 at 8:20 AM
Edited Sep 29, 2015 at 8:22 AM
Hello, Oleg.
I Use Wix# to create .exe-bundle, this bundle installs two packages: 1) .net4.5 (if missing) 2) my msi-installer.
As example I use "Bootstrapper\WixBootstrapper_NoU".

What i do:
1) I compile project.
2) Then I execute .exe-file first time, - it shows installation UI of the msi-file, and i install it successfully.
3) After that I execute .exe-file second time - and it DOESN'T SHOW uninstall UI of the msi-file, i wait some time and check - my program was uninstalled.

What i want:
I want to show user uninstall UI of the msi-file. If i use example "Bootstrapper\WixBootstrapper_UI", i see bootstrapper UI. What should i do? (Or is it even possible)?

Here is my code:
(object "project" is a simple msi-installer)
            string productMsi = Compiler.BuildMsi(project);
            var bootstrapper = new Bundle(@"Установщик MyProgram",
                            new PackageGroupRef(@"NetFx45Web"),
                            new MsiPackage(productMsi) { DisplayInternalUI = true })
           {
                OutFileName = @"MyProgram.Setup",
                Version = new Version("1.0.0.0"),
                Application = new SilentBootstrapperApplication(),
                UpgradeCode = new Guid("E1C17AD2-790F-4AE4-BE25-9DB79BDDAF74")
            };
            bootstrapper.Build();
Thank you for your answer!
Coordinator
Sep 30, 2015 at 4:30 AM
Unfortunately it is not possible.

Uninstalling is very different comparing to the other deployment scenarios. You probably noticed that all MSI authoring solutions support building Install/Repair UI but not the Uninstall one. It is because during the explicit uninstall no UI associated msi file is shown. MSI runtime displays a standard uninstall progress dialog instead. This is what is preventing Burn bootstrapper from displaying any msi UI on uninstall.

This therad also talks about the same issue: http://stackoverflow.com/questions/17808741/how-can-i-display-my-msis-ui-on-uninstalling-from-a-burn-bootstrapper
Coordinator
Oct 6, 2015 at 12:00 AM
Edited Oct 6, 2015 at 12:31 PM
I have captured a few points (including yours) regarding the Burn integration in this post: https://wixsharp.codeplex.com/discussions/645838