Downloading packages now shows progress to the user. Utility app no longer immediately exits after downloading packages.

This commit is contained in:
Matthew Bowra-Dean
2010-11-15 23:06:44 +13:00
committed by Paul Chote
parent 5904563653
commit 63d54952d0
6 changed files with 149 additions and 28 deletions

View File

@@ -71,7 +71,7 @@ namespace OpenRA.Launcher
return new StreamReader(pipe);
}
public static StreamReader CallWithAdmin(string command, params string[] args)
public static Process CallWithAdmin(string command, params string[] args)
{
Process p = new Process();
p.StartInfo.FileName = "OpenRA.Utility.exe";
@@ -89,12 +89,7 @@ namespace OpenRA.Launcher
throw e;
}
NamedPipeClientStream pipe = new NamedPipeClientStream(".", "OpenRA.Utility", PipeDirection.In);
pipe.Connect();
p.WaitForExit();
return new StreamReader(pipe);
return p;
}
}
}