I've got a custom action that runs a UI after the .msi deploys files. This UI sets the configuration and also deploys various things to various places (SQL servers, etc..). The UI itself is running in C# (.NET 2.0). How could I possibly get the state of the installer (that is, upgrade/install/repair and silent/minimalUI/fullUI, etc..)?
Basically, how can I access what mode the installer is in from custom UI based in C#/.NET 2 so that I can handle those states in my code?
(This is similar to Stack Overflow question How to add a WiX custom action that happens only on uninstall (via MSI)?, but not quite.)