'Require admin privileges on runtime in WPF application
As the title says I'm searching for a way to ask for admin privileges on runtime. I'm currently working on a game launcher and I was wondering how launchers like Steam or Epic Games only ask for permission when you need to install a game. Thanks for help
Solution 1:[1]
As far as I'm concerned you are trying to display UAC prompt that will ask for admin privileges. If that is the case you have to add an application manifest. This will show the UAC prompt automatically.
You can see here how to set it up
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | kddinev18 |
