Created
January 7, 2020 20:09
-
-
Save MiffOttah/4a1322c39010445768a9ef852f5dbeea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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