diff options
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."); |