diff options
| author | Bob Arnson <bob@firegiant.com> | 2026-03-09 16:21:15 -0400 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2026-03-09 17:32:22 -0400 |
| commit | b4da272e25c5c776cc5c66ee069bd3fb7548dd92 (patch) | |
| tree | c505aa7fcde1638b8b67bdb41db0b56f9930a246 /src/burn/engine/apply.cpp | |
| parent | dd827742e060db17fb61acc1534556a821c1f2c2 (diff) | |
| download | wix-b4da272e25c5c776cc5c66ee069bd3fb7548dd92.tar.gz wix-b4da272e25c5c776cc5c66ee069bd3fb7548dd92.tar.bz2 wix-b4da272e25c5c776cc5c66ee069bd3fb7548dd92.zip | |
Set more detect-phase values when falling back.
When configurable-scope bundle is already installed,
find it during detect by falling back from machine to user.
Set the scope as early as possible so detect-phase checks
(e.g., cache path, state file) work as expected.
Fixes https://github.com/wixtoolset/issues/issues/9257
Diffstat (limited to 'src/burn/engine/apply.cpp')
| -rw-r--r-- | src/burn/engine/apply.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/burn/engine/apply.cpp b/src/burn/engine/apply.cpp index b7a54246..818427ac 100644 --- a/src/burn/engine/apply.cpp +++ b/src/burn/engine/apply.cpp | |||
| @@ -536,8 +536,6 @@ extern "C" HRESULT ApplyUnregister( | |||
| 536 | IgnoreRollbackError(hrRegistrationRollback, "Dependent registration actions failed"); | 536 | IgnoreRollbackError(hrRegistrationRollback, "Dependent registration actions failed"); |
| 537 | } | 537 | } |
| 538 | 538 | ||
| 539 | LogId(REPORT_STANDARD, MSG_SESSION_END, pEngineState->registration.sczRegistrationKey, LoggingInstallScopeToString(pEngineState->registration.fPerMachine), LoggingResumeModeToString(resumeMode), LoggingRestartToString(restart), LoggingBoolToString(pEngineState->registration.fDisableResume), LoggingRegistrationTypeToString(defaultRegistrationType), LoggingRegistrationTypeToString(registrationType)); | ||
| 540 | |||
| 541 | if (BOOTSTRAPPER_ACTION_UNSAFE_UNINSTALL == pEngineState->plan.action) | 539 | if (BOOTSTRAPPER_ACTION_UNSAFE_UNINSTALL == pEngineState->plan.action) |
| 542 | { | 540 | { |
| 543 | registrationType = BOOTSTRAPPER_REGISTRATION_TYPE_NONE; | 541 | registrationType = BOOTSTRAPPER_REGISTRATION_TYPE_NONE; |
| @@ -546,6 +544,8 @@ extern "C" HRESULT ApplyUnregister( | |||
| 546 | LogId(REPORT_STANDARD, MSG_UNSAFE_SESSION_END); | 544 | LogId(REPORT_STANDARD, MSG_UNSAFE_SESSION_END); |
| 547 | } | 545 | } |
| 548 | 546 | ||
| 547 | LogId(REPORT_STANDARD, MSG_SESSION_END, pEngineState->registration.sczRegistrationKey, LoggingInstallScopeToString(pEngineState->registration.fPerMachine), LoggingResumeModeToString(resumeMode), LoggingRestartToString(restart), LoggingBoolToString(pEngineState->registration.fDisableResume), LoggingRegistrationTypeToString(defaultRegistrationType), LoggingRegistrationTypeToString(registrationType)); | ||
| 548 | |||
| 549 | if (pEngineState->registration.fPerMachine) | 549 | if (pEngineState->registration.fPerMachine) |
| 550 | { | 550 | { |
| 551 | hr = ElevationSessionEnd(pEngineState->companionConnection.hPipe, resumeMode, restart, pEngineState->registration.fDetectedForeignProviderKeyBundleCode, qwEstimatedSize, registrationType); | 551 | hr = ElevationSessionEnd(pEngineState->companionConnection.hPipe, resumeMode, restart, pEngineState->registration.fDetectedForeignProviderKeyBundleCode, qwEstimatedSize, registrationType); |
