From 350449fc4305a99a99385ab699e0f9e9c6b299d3 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 2 Apr 2012 13:16:32 +0200 Subject: [PATCH] msi: Suspend the installation if an action sets MSIRUNMODE_REBOOTNOW. --- dlls/msi/action.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 5ecf8a5dfd6..5e9ef35ac40 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -536,6 +536,12 @@ static UINT ITERATE_Actions(MSIRECORD *row, LPVOID param) if (rc != ERROR_SUCCESS) ERR("Execution halted, action %s returned %i\n", debugstr_w(action), rc); + if (package->need_reboot_now) + { + TRACE("action %s asked for immediate reboot, suspending installation\n", + debugstr_w(action)); + rc = ACTION_ForceReboot( package ); + } return rc; }