From 8c9ca787bee29f969cd7ca9aeaa46626d557d196 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 16 Mar 2022 15:20:15 -0500 Subject: Add WixBundleCommandLineAction, don't set dynamic variables at startup. Fixes 6736 --- src/burn/test/BurnUnitTest/RegistrationTest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/burn/test/BurnUnitTest/RegistrationTest.cpp') diff --git a/src/burn/test/BurnUnitTest/RegistrationTest.cpp b/src/burn/test/BurnUnitTest/RegistrationTest.cpp index 86ea86b0..f01d92a4 100644 --- a/src/burn/test/BurnUnitTest/RegistrationTest.cpp +++ b/src/burn/test/BurnUnitTest/RegistrationTest.cpp @@ -313,6 +313,9 @@ namespace Bootstrapper plan.pCommand = &command; plan.pInternalCommand = &internalCommand; + hr = RegistrationSetVariables(®istration, &variables); + TestThrowOnFailure(hr, L"Failed to set registration variables."); + hr = PlanSetResumeCommand(&plan, ®istration, &logging); TestThrowOnFailure(hr, L"Failed to set registration resume command."); @@ -339,8 +342,8 @@ namespace Bootstrapper this->ValidateUninstallKeyDisplayName(L"Product1"); registration.detectedRegistrationType = BOOTSTRAPPER_REGISTRATION_TYPE_FULL; - hr = RegistrationSetVariables(®istration, &variables); - TestThrowOnFailure(hr, L"Failed to set registration variables."); + hr = RegistrationSetDynamicVariables(®istration, &variables); + TestThrowOnFailure(hr, L"Failed to set dynamic registration variables."); Assert::Equal(1ll, VariableGetNumericHelper(&variables, BURN_BUNDLE_INSTALLED)); Assert::Equal(gcnew String(L"foo"), VariableGetStringHelper(&variables, BURN_BUNDLE_TAG)); -- cgit v1.2.3-55-g6feb