WiX 3.7: How to add or update a dialog during uninstall?

I need to add a dialog box that will appear during a complete uninstall (not a major update) immediately after confirmation ("Are you sure you want to uninstall this product?"). In this dialog box, you will be asked to answer the question and, based on the answer, configure the property that will be used in the condition for the RemoveRegistryKey element (i.e., it will delete the registry key only if the user chooses the option to delete the key).

I have an idea how to add a dialog to the installation sequence (I use the modified WixUI_InstalLDir sequence, to which I added a special dialog that I need during installation), but I can not find links that could explain how to add a custom dialogue in the delete sequence. It would be even better if I could change the delete confirmation dialog so that the user sees one dialog instead of two. The key point would be to set a property that could be used in the state of the component.

Is it possible? Are there any examples of how to do this?

0
source share
1 answer

This is contrary to Microsoft's development guidelines. Adding and removing programs causes removal using a silent user interface argument, and the user interface sequence is never processed.

The only place where you can create an authoring interface during uninstallation is the “change” or “maintenance” of the user interface, where they select Repair | Change | Uninstall and remove your user interface. But you will need to block the remote deletion and force them to follow this path. Also keep in mind that they could call msiexec / x / qb from the command line.

On the bottom line, Microsoft made this choice to make the removal process simple and easy for the user. Regarding the removal of the registry key, Microsoft will inform you that you must leave the user data upon removal.

+1
source

Source: https://habr.com/ru/post/954824/


All Articles