aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/registration.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2022-03-05 15:27:42 -0600
committerSean Hall <r.sean.hall@gmail.com>2022-03-05 16:22:04 -0600
commit5a6c681b28c953d809292b4b85c80af300d7902f (patch)
treedd4f3706c427a0ebaed9b307c222ee9ac40804e1 /src/burn/engine/registration.cpp
parente027c6c571a4bc8c818244e2b0c5015eb4ef3110 (diff)
downloadwix-5a6c681b28c953d809292b4b85c80af300d7902f.tar.gz
wix-5a6c681b28c953d809292b4b85c80af300d7902f.tar.bz2
wix-5a6c681b28c953d809292b4b85c80af300d7902f.zip
Ensure WixBundleInstalled and RebootPending are set in elevated engine.
Diffstat (limited to 'src/burn/engine/registration.cpp')
-rw-r--r--src/burn/engine/registration.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/burn/engine/registration.cpp b/src/burn/engine/registration.cpp
index fcefe5e0..545c390b 100644
--- a/src/burn/engine/registration.cpp
+++ b/src/burn/engine/registration.cpp
@@ -484,7 +484,13 @@ extern "C" HRESULT RegistrationSetDynamicVariables(
484 ) 484 )
485{ 485{
486 HRESULT hr = S_OK; 486 HRESULT hr = S_OK;
487 LONGLONG llInstalled = BOOTSTRAPPER_REGISTRATION_TYPE_FULL == pRegistration->detectedRegistrationType ? 1 : 0; 487 LONGLONG llInstalled = 0;
488
489 // Detect if bundle is already installed.
490 hr = RegistrationDetectInstalled(pRegistration);
491 ExitOnFailure(hr, "Failed to detect bundle install state.");
492
493 llInstalled = BOOTSTRAPPER_REGISTRATION_TYPE_FULL == pRegistration->detectedRegistrationType ? 1 : 0;
488 494
489 hr = VariableSetNumeric(pVariables, BURN_BUNDLE_INSTALLED, llInstalled, TRUE); 495 hr = VariableSetNumeric(pVariables, BURN_BUNDLE_INSTALLED, llInstalled, TRUE);
490 ExitOnFailure(hr, "Failed to set the bundle installed built-in variable."); 496 ExitOnFailure(hr, "Failed to set the bundle installed built-in variable.");