msi: Suspend the installation if an action sets MSIRUNMODE_REBOOTNOW.

This commit is contained in:
Hans Leidekker 2012-04-02 13:16:32 +02:00 committed by Alexandre Julliard
parent 15ee85dee8
commit 350449fc43
1 changed files with 6 additions and 0 deletions

View File

@ -536,6 +536,12 @@ static UINT ITERATE_Actions(MSIRECORD *row, LPVOID param)
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
ERR("Execution halted, action %s returned %i\n", debugstr_w(action), rc); 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; return rc;
} }