feat(helper/updater): auto launch bloxstrap after update

This commit is contained in:
404Kurama 2023-04-23 22:40:39 +07:00
parent fe1eb6cf3d
commit d1c78bc7db

View File

@ -97,7 +97,7 @@ namespace Bloxstrap.Helpers
/// file without closing it process.
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "cmd.exe";
startInfo.Arguments = $"/c ping 127.0.0.1 -n 5 > nul && copy /y {downloadPath} {Directories.Application}";
startInfo.Arguments = $"/c ping 127.0.0.1 -n 5 > nul && copy /y {downloadPath} {Directories.Application} && cls && echo Please restart Bloxstrap to complete update bootstrap. && {Directories.Application} -menu";
///startInfo.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(startInfo);