From 8b72b3750e5b1245cc4567b57aeddd951129daa7 Mon Sep 17 00:00:00 2001 From: Nir Bar Date: Thu, 29 Feb 2024 13:53:49 +0200 Subject: [PATCH] Allow reboot message popup in passive UI only --- .../wixstdba/WixStandardBootstrapperApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/BalExtension/wixstdba/WixStandardBootstrapperApplication.cpp b/src/ext/BalExtension/wixstdba/WixStandardBootstrapperApplication.cpp index 288f24ac2..4106965ad 100644 --- a/src/ext/BalExtension/wixstdba/WixStandardBootstrapperApplication.cpp +++ b/src/ext/BalExtension/wixstdba/WixStandardBootstrapperApplication.cpp @@ -2646,7 +2646,7 @@ class CWixStandardBootstrapperApplication : public CBalBaseBootstrapperApplicati { // If a restart was required but we were not automatically allowed to // accept the reboot then do the prompt. - if (m_fRestartRequired && !m_fAllowRestart) + if (m_fRestartRequired && !m_fAllowRestart && (BOOTSTRAPPER_DISPLAY_PASSIVE == m_command.display)) { StrAllocFromError(&sczUnformattedText, HRESULT_FROM_WIN32(ERROR_SUCCESS_REBOOT_REQUIRED), NULL);