Is there a way to mark a .EXE to request it be run as admin? So that:
- If UAC is set to runas admin with no prompt - it runs as admin.
- If user cannot runas admin (reqires different login), runs as user.
- If prompts, prompts user. If accepted, runs as admin.
- If prompt declined, runs as user.
I know how to do this with 2 .exe programs. But I'd like to do it with one. This program enters the user's license key. In HKLM if the app has admin rights (so all users have the key). In HKCU if no admin rights.