Module: wine Branch: master Commit: 350449fc4305a99a99385ab699e0f9e9c6b299d3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=350449fc4305a99a99385ab699...
Author: Hans Leidekker hans@codeweavers.com Date: Mon Apr 2 13:16:32 2012 +0200
msi: Suspend the installation if an action sets MSIRUNMODE_REBOOTNOW.
---
dlls/msi/action.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 5ecf8a5..5e9ef35 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; }