From a937577f4ba03a4ae17ed9516196bdcafd3608b9 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Wed, 9 Jun 2021 14:08:22 -0700 Subject: [PATCH] Updated Temp/Windows SelfUpdate --- agents/recoverycore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/recoverycore.js b/agents/recoverycore.js index e2ce4d96..eda0d297 100644 --- a/agents/recoverycore.js +++ b/agents/recoverycore.js @@ -466,7 +466,7 @@ function windows_execve(name, agentfilename, sessionid) { parms.push('--updateSourcePath="' + cwd + agentfilename + '"'); updatesource = (cwd + agentfilename).split('.exe'); updatesource.pop(); updatesource = updatesource.join('.exe'); db = updatesource + '.db'; - updatesource = (' & move "' + updatedb + '" "' + db + '"') + (' & erase "' + updatedb + '"'); + updatesource = (' & move "' + updatedb + '" "' + db + '"') + (' & erase "' + updatedb + '" & move "' + update + '" "' + updatesource + '.exe"'); } else {