mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-17 00:33:15 +00:00
Fixed auto-update system.
This commit is contained in:
@@ -201,7 +201,7 @@ namespace MeshCentralRouter
|
|||||||
System.Threading.Thread.Sleep(1000);
|
System.Threading.Thread.Sleep(1000);
|
||||||
File.Copy(Assembly.GetEntryAssembly().Location, update, true);
|
File.Copy(Assembly.GetEntryAssembly().Location, update, true);
|
||||||
System.Threading.Thread.Sleep(1000);
|
System.Threading.Thread.Sleep(1000);
|
||||||
Process.Start(update, string.Join(" ", args2 + " -delete:" + Assembly.GetEntryAssembly().Location));
|
Process.Start(update, string.Join(" ", (string[])args2.ToArray(typeof(string))) + " -delete:" + Assembly.GetEntryAssembly().Location);
|
||||||
this.forceExit = true;
|
this.forceExit = true;
|
||||||
Application.Exit();
|
Application.Exit();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user