How to launch Maintenance mode--“Change, Repair, or Remove installation” dialog in WIX

StackOverflow https://stackoverflow.com/questions/1954831

  •  21-09-2019
  •  | 
  •  

Question

I have changed the wix tutorial codes from here http://www.tramontana.co.hu/wix/ to make my own installer.

There is no problem when I run the installer to setup my application. But when I run the the installer again, a window jumped out said "Another version of this prodcut is already installed..."

But in the sample, there should be a Maintenance mode, "change, repair or remove installation" dialog when running the installer after the program has already been installed.

I am using the WixUI_Mondo, I think it provides the maintenance mode automatically, any idea how to launch it?

Was it helpful?

Solution

I hope this is what you're missing:

Assuming you have an existing installer that's functional but just lacking a user interface, here are the steps you need to follow to use a WixUI stock dialog set:

  1. Add a UIRef element to your installer source code, using an Id attribute of one of the dialog sets. In your case:

    <Product ...>
    <UIRef Id="WixUI_Mondo" />
    </Product>
    

You can also customize your dialogs, so that you could create a custom 'maintenance' dialog.

-Good luck. Chris

OTHER TIPS

But when I run the the installer again, a window jumped out and said "Another version of this product is already installed..."

This is the error you get when you rebuild your installer with the exact same product ID, but different package ID and then run it again.

If you run the original MSI file it should go to maintenance mode.

If you don't have the original MSI anymore, you can still uninstall your product via add/remove programs. This is possible because Windows Installer caches MSI files with a random name under c:\windows\installer\.

Unless you need to support fine-grained upgrade scenarios (i.e. patching), I recommend you set the product ID to "*" and implement major upgrades as described in the wix help topic How to: Implement a Major Upgrade in your Installer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top