From 22611ea93069daa4efe0af706dbf171c2b2242da Mon Sep 17 00:00:00 2001 From: joostverburg Date: Sun, 2 Feb 2003 21:07:41 +0000 Subject: [PATCH] abort function can call custom function git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2105 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI/Readme.html | 5 +++++ Contrib/Modern UI/System.nsh | 3 +++ 2 files changed, 8 insertions(+) diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index 21ac5a86..a4e87295 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -493,6 +493,11 @@ MUI_CUSTOMFUNCTION_INSTFILES_LEAVE MUI_CUSTOMFUNCTION_FINISH_PRE
MUI_CUSTOMFUNCTION_FINISH_SHOW

+

+

+Installer Abort
+MUI_CUSTOMFUNCTION_ABORT +

Uninstaller - Confirm Page
MUI_UNCUSTOMFUNCTION_CONFIRM_PRE
diff --git a/Contrib/Modern UI/System.nsh b/Contrib/Modern UI/System.nsh index 1e934e80..7cc6e721 100644 --- a/Contrib/Modern UI/System.nsh +++ b/Contrib/Modern UI/System.nsh @@ -1471,6 +1471,9 @@ !ifdef MUI_ABORTWARNING Function .onUserAbort !insertmacro MUI_ABORTWARNING + !ifdef MUI_CUSTOMFUNCTION_ABORT + Call "${MUI_CUSTOMFUNCTION_ABORT}" + !endif FunctionEnd !endif