@joebigelow / wix / commits / df802385

Apply shouldn't abort if restart's required when doing special actions.

Fixes #5394

Sean Hall committed Jun 16, 2021 at 12:37 UTC df80238531f76724d2d3e9f4a92b0fd691cf8526
1 file changed +2 -2
src/burn/engine/core.cpp
+2 -2
@@ -638,8 +638,8 @@ extern "C" HRESULT CoreApply(
638
639 pEngineState->plan.fAffectedMachineState = pEngineState->plan.fCanAffectMachineState;
640
641 - // Abort if this bundle already requires a restart.
642 - if (BOOTSTRAPPER_RESUME_TYPE_REBOOT_PENDING == pEngineState->command.resumeType)
641 + // Abort if could affect machine state and this bundle already requires a restart.
642 + if (pEngineState->plan.fCanAffectMachineState && BOOTSTRAPPER_RESUME_TYPE_REBOOT_PENDING == pEngineState->command.resumeType)
643 {
644 restart = BOOTSTRAPPER_APPLY_RESTART_REQUIRED;
645