mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
#348, insufficient delay causes failure to upgrade
This commit is contained in:
parent
1b4f62ee7d
commit
e6f11c354d
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ namespace PersistentWindows.SystrayShell
|
|||
upgradeDownloaded[latestVersion] = true;
|
||||
|
||||
string batFile = Path.Combine(Program.AppdataFolder, $"pw_upgrade.bat");
|
||||
string content = "timeout /t 5 /nobreak > NUL";
|
||||
string content = "timeout /t 10 /nobreak > NUL";
|
||||
content += $"\ncopy /Y \"{dst_dir}\\*.*\" \"{install_dir}\"";
|
||||
content += "\nstart \"\" /B \"" + Path.Combine(install_dir, Application.ProductName) + ".exe\" " + Program.CmdArgs;
|
||||
File.WriteAllText(batFile, content);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue