I have one .net application which would be installed under "program files" running in 2 different modes:
- "ADVANCED_MODE" with all plugins enabled which should pop-up the UAC to run as administrator
- "BASIC_MODE" with only few plugins loaded which should work as normal user
What to do to solve this case?
If I embed a manifest file (requireAdmin
set on), it will not work for BASIC_MODE. If I don't use any manifests, then I don't have the chance to popup the UAC in ADVANCED_MODE. If I use "asInvoker
" or "highestAvailable
" I get strange effects when I run the app from Program Files as normal user account: it closes immediately after startup without any crash.
What would you do? What are my options?