diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-03-05 15:27:42 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-03-05 16:22:04 -0600 |
commit | 5a6c681b28c953d809292b4b85c80af300d7902f (patch) | |
tree | dd4f3706c427a0ebaed9b307c222ee9ac40804e1 /src/burn/engine/registration.cpp | |
parent | e027c6c571a4bc8c818244e2b0c5015eb4ef3110 (diff) | |
download | wix-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.cpp | 8 |
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."); |