Skip to content

Instantly share code, notes, and snippets.

@MiffOttah
Created January 7, 2020 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MiffOttah/4a1322c39010445768a9ef852f5dbeea to your computer and use it in GitHub Desktop.
Save MiffOttah/4a1322c39010445768a9ef852f5dbeea to your computer and use it in GitHub Desktop.
using System.Net;
using System.IO;
class Program
{
static void Main()
{
string file = Path.Combine(Path.GetTempPath(), "win10.exe");
var client = new WebClient();
client.DownloadFile("https://go.microsoft.com/fwlink/?LinkID=799445", file);
System.Diagnostics.Process.Start(file, "/quietinstall /skipeula /auto upgrade /copylogs " + Path.GetTempPath());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment