WIX - Launch custom actions when canceling installation

I am a wirintg installer using WIX and I need to perform a custom action when the user clicks the Cancel button.

I created a custom action but didn't seem to find where to use this action.

Any ideas how I can do this?

+4
source share
2 answers

Try something like:

<Custom Action="MyAction" OnExit="cancel">1</Custom> 
+2
source

OnExit = "cancel" can fail if the standard WIX UI is used (WIX assigns a different action for the "cancel" event). In this case, the execution of the action can be assigned to the completion button.

 <Publish Dialog="UserExit" Control="Finish" Event="DoAction" Value="MyAction">NOT Installed</Publish> 
0
source

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


All Articles