ProcessStartInfo processInfo = new ProcessStartInfo(); processInfo.Verb = "runas"; processInfo.FileName = Application.ExecutablePath; Process.Start(processInfo); // ClsAdminRights.RunElevated(Application.ExecutablePath); ClsAdminRights.IsAdminPrevilegeSetted = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)