We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fe12aa commit 38770b9Copy full SHA for 38770b9
modUpdate.cs
@@ -82,6 +82,7 @@ public static int UpdateAgent()
82
string UpdateFile = "agent" + updateNeeded.ToString() + ".zip";
83
UpdateDownloadClient.DownloadFile(Properties.Settings.Default.Update_SourceURI + UpdateFile, Properties.Settings.Default.Scripts_FolderURI + UpdateFile);
84
ZipFile.ExtractToDirectory(Properties.Settings.Default.Scripts_FolderURI + UpdateFile, Properties.Settings.Default.Scripts_FolderURI + "agenttemp");
85
+ File.Delete(Properties.Settings.Default.Scripts_FolderURI + UpdateFile);
86
File.Copy(Properties.Settings.Default.Scripts_FolderURI + @"agenttemp\agentupdate.bat", Properties.Settings.Default.Scripts_FolderURI + "agentupdate.bat", true);
87
Process UpdateRunner = new Process();
88
UpdateRunner.StartInfo.UseShellExecute = true;
0 commit comments