diff --git a/Contrib/Modern UI/Changelog.txt b/Contrib/Modern UI/Changelog.txt index 56394f66..cc4e3982 100644 --- a/Contrib/Modern UI/Changelog.txt +++ b/Contrib/Modern UI/Changelog.txt @@ -1,5 +1,8 @@ NSIS Modern User Interface - VERSION HISTORY +1.76 - September 23, 2006 +* Added MUI_ABORTWARNING_CANCEL_DEFAULT + 1.75 - April 1, 2006 * Added show function for the start menu page * Added MUI_HEADER_TRANSPARENT_TEXT for transparent header texts diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index 8546fe40..b4d922f7 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -514,7 +514,9 @@ installer.

MUI_ABORTWARNING_TEXT text
-Text to display on the abort warning messagebox.

+Text to display on the abort warning message box.

+

MUI_ABORTWARNING_CANCEL_DEFAULT
+Set the Cancel button as the default button on the message box.

Open/Close section

MUI_UNABORTWARNING_TEXT text
-Text to display on the abort warning messagebox.

+Text to display on the abort warning message box.

+

MUI_UNABORTWARNING_CANCEL_DEFAULT
+Set the Cancel button as the default button on the message box.

@@ -1216,10 +1220,9 @@ Start Menu Folder page: Version History

diff --git a/Contrib/Modern UI/System.nsh b/Contrib/Modern UI/System.nsh index 357835d1..19b0c41d 100644 --- a/Contrib/Modern UI/System.nsh +++ b/Contrib/Modern UI/System.nsh @@ -312,7 +312,11 @@ Var /GLOBAL MUI_TEMP2 StrCmp $MUI_NOABORTWARNING "1" mui.quit !endif - MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_ABORTWARNING_TEXT}" IDYES mui.quit + !ifdef MUI_ABORTWARNING_CANCEL_DEFAULT + MessageBox MB_YESNO|MB_ICONEXCLAMATION|MB_DEFBUTTON2 "${MUI_ABORTWARNING_TEXT}" IDYES mui.quit + !else + MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_ABORTWARNING_TEXT}" IDYES mui.quit + !endif Abort mui.quit: @@ -321,7 +325,11 @@ Var /GLOBAL MUI_TEMP2 !macro MUI_UNABORTWARNING - MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_UNABORTWARNING_TEXT}" IDYES mui.quit + !ifdef MUI_UNABORTWARNING_CANCEL_DEFAULT + MessageBox MB_YESNO|MB_ICONEXCLAMATION|MB_DEFBUTTON2 "${MUI_UNABORTWARNING_TEXT}" IDYES mui.quit + !else + MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_UNABORTWARNING_TEXT}" IDYES mui.quit + !endif Abort mui.quit: