I use ProcessStartInfo
to download files. The code is as the following:
Process pc = new Process();
pc.StartInfo.FileName = Application.StartupPath + "\\" + [exe];
pc.StartInfo.Arguments = string.Format("Download {0}{1}{2} -out {3}{4}{5}", [some arguments]);
pc.StartInfo.UseShellExecute = false;
pc.StartInfo.CreateNoWindow = false;
pc.Start();
pc.WaitForExit();
But, when trying to install large files (+250 MB), it downloads but doesn't continue after WaitForExit
.