don't accumulate installer (#27908)

This commit is contained in:
Davide Giacometti
2023-08-14 10:55:12 +02:00
committed by GitHub
parent 00dc4981d1
commit bcb0942b73
5 changed files with 58 additions and 52 deletions

View File

@@ -159,6 +159,10 @@ void ProcessNewVersionInfo(const github_version_info& version_info,
if (download_update)
{
Logger::trace(L"Downloading installer for a new version");
// Cleanup old updates before downloading the latest
updating::cleanup_updates();
if (download_new_version(new_version_info).get())
{
state.state = UpdateState::readyToInstall;