Updated Temp/Windows SelfUpdate

This commit is contained in:
Bryan Roe 2021-06-09 14:08:22 -07:00
parent 50abd95f94
commit a937577f4b

View File

@ -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
{