1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-06 00:13:33 +00:00

Fixed auto-update system.

This commit is contained in:
Ylian Saint-Hilaire
2020-11-03 18:42:54 -08:00
parent 20d72cb66a
commit a735f73447

View File

@@ -201,7 +201,7 @@ namespace MeshCentralRouter
System.Threading.Thread.Sleep(1000);
File.Copy(Assembly.GetEntryAssembly().Location, update, true);
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;
Application.Exit();
return;