From 508130a87f7c1a9e038a90451e1a924c3bb7b4e9 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 13 Feb 2011 15:52:11 +1300 Subject: [PATCH] only elevate on windows 6+ --- OpenRA.Utility/Util.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Utility/Util.cs b/OpenRA.Utility/Util.cs index 2a4a2be3a1..12c2c2a298 100644 --- a/OpenRA.Utility/Util.cs +++ b/OpenRA.Utility/Util.cs @@ -91,7 +91,10 @@ namespace OpenRA.Utility p.StartInfo.FileName = "OpenRA.Utility.exe"; p.StartInfo.Arguments = command + " --pipe " + pipename; p.StartInfo.CreateNoWindow = true; - p.StartInfo.Verb = "runas"; + + // do we support elevation? + if (Environment.OSVersion.Version >= new Version(6,0)) + p.StartInfo.Verb = "runas"; try {