From b0d9dc42351ebe3e81f2cee22a5713247ea4515a Mon Sep 17 00:00:00 2001 From: Varriount Date: Tue, 21 Oct 2014 17:02:32 -0400 Subject: [PATCH] Update nsis.tmpl React appropriately when the user cancels the downloading of a component. --- tools/niminst/nsis.tmpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/niminst/nsis.tmpl b/tools/niminst/nsis.tmpl index c4270081e2..974def6340 100644 --- a/tools/niminst/nsis.tmpl +++ b/tools/niminst/nsis.tmpl @@ -192,8 +192,14 @@ ${If} $0 == "success" ZipDLL::extractall "$TEMP\?zipName" "$INSTDIR\?dir" Delete "$TEMP\?zipName" + ${ElseIf} $0 == "cancel" + MessageBox MB_ICONQUESTION|MB_YESNO|MB_TOPMOST \ + "Download of component '?sectionName' cancelled. Continue installation process??" \ + IDYES ignore + abort ${Else} - MessageBox MB_ICONSTOP|MB_ABORTRETRYIGNORE "Error: $0" IDRETRY retry IDIGNORE ignore + MessageBox MB_ICONSTOP|MB_ABORTRETRYIGNORE|MB_TOPMOST "Error: $0" \ + IDRETRY retry IDIGNORE ignore abort ${EndIf} @@ -252,4 +258,4 @@ Function .onInit ${GetRoot} "$EXEDIR" $R0 strCpy $INSTDIR "$R0\?{c.name}" - FunctionEnd \ No newline at end of file + FunctionEnd