Is it possible to know if an installer is installing/updating/removing in a Custom Action?
We’ve made a Custom Action dll in C# and it would be interesting if we could detect what the installer is doing. In the WiX xml documents, you could use ‘Not Installed’, ‘REMOVE’, etc (see this nice overview). But is it possible to access these variables in a Custom Action?
We tried passing the variable to the Custom Action, but that just gives us a variable with a string value like ‘Not Installed’, instead of true or false.
Hm, we ended up making two entry points in the custom action and checking in de wxs files which one we should call. Not how we wanted to do it, but it works for now.