only elevate on windows 6+

This commit is contained in:
Chris Forbes
2011-02-13 15:52:11 +13:00
parent c50b6f47f7
commit 508130a87f

View File

@@ -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