From 9cc0c4f8748203b9d198eb32c73562391be871a8 Mon Sep 17 00:00:00 2001 From: Davide Giacometti Date: Mon, 4 Oct 2021 15:01:40 +0200 Subject: [PATCH] preserve msi name (#13597) --- installer/PowerToysBootstrapper/bootstrapper/bootstrapper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/PowerToysBootstrapper/bootstrapper/bootstrapper.cpp b/installer/PowerToysBootstrapper/bootstrapper/bootstrapper.cpp index 278c5b934b..42e17afe8c 100644 --- a/installer/PowerToysBootstrapper/bootstrapper/bootstrapper.cpp +++ b/installer/PowerToysBootstrapper/bootstrapper/bootstrapper.cpp @@ -42,7 +42,9 @@ std::optional ExtractEmbeddedInstaller(const fs::path extractPath) return std::nullopt; } - auto installerPath = extractPath / L"PowerToysBootstrappedInstaller-" PRODUCT_VERSION_STRING L".msi"; + std::wstring msiName(L"PowerToysSetup-" STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "." STRINGIZE(VERSION_REVISION) L"-"); + msiName += get_architecture_string(get_current_architecture()) + std::wstring(L".msi"); + auto installerPath = extractPath / msiName; return executableRes->saveAsFile(installerPath) ? std::make_optional(std::move(installerPath)) : std::nullopt; }