From d54715a9c301edbee74e89716dcc04e08e2388b0 Mon Sep 17 00:00:00 2001 From: CharlesThobe Date: Mon, 30 May 2022 23:24:54 +0200 Subject: [PATCH] Updater: Do not extract portable.ini DIO --- updater/Updater.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/updater/Updater.cpp b/updater/Updater.cpp index 1fee272ee0..8c20dada67 100644 --- a/updater/Updater.cpp +++ b/updater/Updater.cpp @@ -238,7 +238,9 @@ bool Updater::ParseZip() if (!entry.destination_filename.empty() && entry.destination_filename.back() != FS_OSPATH_SEPARATOR_CHARACTER) { // skip updater itself, since it was already pre-extracted. - if (StringUtil::Strcasecmp(entry.destination_filename.c_str(), "updater.exe") != 0) + // also skips portable.ini to not mess with future non-portable installs. + if (StringUtil::Strcasecmp(entry.destination_filename.c_str(), "updater.exe") != 0 && + StringUtil::Strcasecmp(entry.destination_filename.c_str(), "portable.ini") != 0) { m_progress->DisplayFormattedInformation("Found file in zip: '%s'", entry.destination_filename.c_str()); m_update_paths.push_back(std::move(entry));