diff --git a/ToDo.txt b/ToDo.txt index f1bdb15..6e20901 100644 --- a/ToDo.txt +++ b/ToDo.txt @@ -1,6 +1,6 @@ More Icons for Apps More apps: Laptop Sim (when done) Use local info when building GUI (Except name/description) -Decent updater and Installer (Do not open CMD) +Decent app Installer (Do not open CMD) Save Images on disk to allow offline usage Test Updates \ No newline at end of file diff --git a/UpTool2/Program.cs b/UpTool2/Program.cs index 9fde828..9be737a 100644 --- a/UpTool2/Program.cs +++ b/UpTool2/Program.cs @@ -95,7 +95,7 @@ namespace UpTool2 } new XElement("meta", new XElement("Version", version)).Save(xml); splash.Hide(); - Process.Start(new ProcessStartInfo { FileName = "cmd.exe", Arguments = "/C echo Running Update & timeout /t 4 & copy /b/v/y \"" + dir + @"\update.exe" + "\" \"" + Application.ExecutablePath + "\" & echo Done Updating, please restart & pause" }); + Process.Start(new ProcessStartInfo { FileName = "cmd.exe", Arguments = "/C timeout /t 2 & copy /b/v/y \"" + dir + @"\update.exe" + "\" \"" + Application.ExecutablePath + "\" & \"" + Application.ExecutablePath + "\"", CreateNoWindow = true, WindowStyle = ProcessWindowStyle.Hidden }); } else Application.Run(new MainForm());