only elevate on windows 6+
This commit is contained in:
@@ -91,6 +91,9 @@ namespace OpenRA.Utility
|
||||
p.StartInfo.FileName = "OpenRA.Utility.exe";
|
||||
p.StartInfo.Arguments = command + " --pipe " + pipename;
|
||||
p.StartInfo.CreateNoWindow = true;
|
||||
|
||||
// do we support elevation?
|
||||
if (Environment.OSVersion.Version >= new Version(6,0))
|
||||
p.StartInfo.Verb = "runas";
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user