Skip to content

Commit 38770b9

Browse files
committed
Delete update archive after unpacking
1 parent 7fe12aa commit 38770b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modUpdate.cs

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public static int UpdateAgent()
8282
string UpdateFile = "agent" + updateNeeded.ToString() + ".zip";
8383
UpdateDownloadClient.DownloadFile(Properties.Settings.Default.Update_SourceURI + UpdateFile, Properties.Settings.Default.Scripts_FolderURI + UpdateFile);
8484
ZipFile.ExtractToDirectory(Properties.Settings.Default.Scripts_FolderURI + UpdateFile, Properties.Settings.Default.Scripts_FolderURI + "agenttemp");
85+
File.Delete(Properties.Settings.Default.Scripts_FolderURI + UpdateFile);
8586
File.Copy(Properties.Settings.Default.Scripts_FolderURI + @"agenttemp\agentupdate.bat", Properties.Settings.Default.Scripts_FolderURI + "agentupdate.bat", true);
8687
Process UpdateRunner = new Process();
8788
UpdateRunner.StartInfo.UseShellExecute = true;

0 commit comments

Comments
 (0)