These are the steps I am doing:
-
Take VS2022 and open it with elevated privileges (as administrator).
-
create a C#/Winform project for .net-8.0
-
Embed a manifest that states:
-
since I want it to always run as administrator in main form i am runing this method, add a script that allows me to relaunch the application as administrator:
private static bool IsRunAsAdmin() {
try