|
|
#1 |
|
Junior Member
Join Date: Jun 2012
Posts: 6
|
Cancel button in nsDialogs
How do I tell if the Cancel button has been pressed in a nsDialogs dialogbox?
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
nsDialogs doesn't appear to have a built in handler so the best thing I can think of is to set a variable to 1 before ::Show and to 0 in the custom page's leave callback function (and in the previous page's pre callback function if there is a previous page). Then check the variable value in your abort callback function (set using MUI_CUSTOMFUNCTION_ABORT) to determine whether or not the user cancelled while on your custom page. Your other option is to write a plug-in which grabs the value of extra_parameters->abort (set to 1 after Cancel has been pressed).
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
Senior Member
|
This is often asked for feature. Maybe it will be added in next release.
Create cool looking Graphical Installers in NSIS: www.graphical-installer.com -see below I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsigned-softworks.sk Develop NSIS projects directly in Visual Studio 2005-2012: www.unsigned-softworks.sk/visual-installer/ |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,841
|
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
|
You should really only make changes outside $pluginsdir on the instfiles page so IMHO catching cancel seems wrong...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#6 |
|
Senior Member
|
Yes that's the plan, but there is too much items on my To-Do list
Create cool looking Graphical Installers in NSIS: www.graphical-installer.com -see below I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsigned-softworks.sk Develop NSIS projects directly in Visual Studio 2005-2012: www.unsigned-softworks.sk/visual-installer/ |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|