From ebc649803ebd26f70a537ae848171e240718a904 Mon Sep 17 00:00:00 2001 From: --global Date: Tue, 4 Jun 2024 09:57:10 -0700 Subject: [PATCH] address yao's comments --- src/AppInstallerCLICore/ConfigurationDynamicRuntimeFactory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AppInstallerCLICore/ConfigurationDynamicRuntimeFactory.cpp b/src/AppInstallerCLICore/ConfigurationDynamicRuntimeFactory.cpp index 54c6d9e9e2..cffd022eec 100644 --- a/src/AppInstallerCLICore/ConfigurationDynamicRuntimeFactory.cpp +++ b/src/AppInstallerCLICore/ConfigurationDynamicRuntimeFactory.cpp @@ -215,10 +215,9 @@ namespace AppInstaller::CLI::ConfigurationRemoting // If we got here, the only option is that the current integrity level is not High. if (integrityLevel == Security::IntegrityLevel::High) { + bool useRunAs = true; #ifndef DISABLE_TEST_HOOKS bool useRunAs = !GetConfigurationSetMetadataOverride(m_configurationSet, EnableTestModeTestGuid); -#elif - bool useRunAs = true; #endif factory = CreateOutOfProcessFactory(useRunAs, SerializeSetProperties(), SerializeHighIntegrityLevelSet());