Hide updaters Command-Prompt

This commit is contained in:
CreepyCrafter24 2019-10-20 19:20:42 +02:00
parent c000acf098
commit 25153e6998
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
More Icons for Apps More Icons for Apps
More apps: Laptop Sim (when done) More apps: Laptop Sim (when done)
Use local info when building GUI (Except name/description) 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 Save Images on disk to allow offline usage
Test Updates Test Updates

View File

@ -95,7 +95,7 @@ namespace UpTool2
} }
new XElement("meta", new XElement("Version", version)).Save(xml); new XElement("meta", new XElement("Version", version)).Save(xml);
splash.Hide(); 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 else
Application.Run(new MainForm()); Application.Run(new MainForm());