Search code examples
wixcustom-actionwixsharp

How can to run custom action that would run on CANCEL/abort installation?


how can I run CA that would run on CANCEL/abort installation?

I'd like to run a command in case of cancel/abort.

I need it to support at quiet mode too.

Also, how can I detect it's on cancel mode?

Basically working with Wix# but Wix is fine too.


Solution

  • Cancelling an install causes it to rollback actions that were already executed. Therefore you want to set the Execute attribute on your CustomAction element to rollback.