From c36dc9e7d043e000f6f4cb714e76e3fca61fed97 Mon Sep 17 00:00:00 2001 From: David Pinedo Date: Tue, 2 Feb 2016 10:47:57 -0700 Subject: [PATCH] windowsrtinstaller: Don't display dialog when silent uninstall requires reboot --- windowsRuntimeInstaller/InstallerRT.nsi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/windowsRuntimeInstaller/InstallerRT.nsi b/windowsRuntimeInstaller/InstallerRT.nsi index a12ef7e..4a94f08 100644 --- a/windowsRuntimeInstaller/InstallerRT.nsi +++ b/windowsRuntimeInstaller/InstallerRT.nsi @@ -435,9 +435,10 @@ Section "uninstall" Call un.DeleteDirIfEmpty # If any of the remove commands failed, request a reboot - IfRebootFlag 0 noreboot - MessageBox MB_YESNO "A reboot is required to finish the uninstall. Do you wish to reboot now?" IDNO noreboot - Reboot + IfSilent noreboot + IfRebootFlag 0 noreboot + MessageBox MB_YESNO "A reboot is required to finish the uninstall. Do you wish to reboot now?" IDNO noreboot + Reboot noreboot: ${Endif} -- 2.7.4