I developed a custom installer with WiX for a .NET WPF application. It works fine if I right-click and run as administrator, however when running without, some components fa
For me I was supposed to run a registry command to delete a system environment variable via the CustomAction WiX element, which required administrator privileges.
Using CustomAction → Impersonate="no" worked for me as mentioned in post https://stackoverflow.com/a/8657472/3205679.
WiX Custom Action code:
Installed AND NOT UPGRADINGPRODUCTCODE