|
|
#1 |
|
Junior Member
Join Date: Oct 2007
Location: Littleton, CO
Posts: 3
|
How do I know if the cancel button was clicked?
In my page leave function, the following call returns 0 for both the cancel button and the next button, so my validation occurs when the cancel button was clicked:
ReadINIStr $0 "pageComponentParameters.ini" "Settings" "State" Is there a way to know if the button clicked was Cancel vs. Next? |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
The leave function isn't called when the Cancel button is clicked. If you're talking about the code after InstallOptions::show is called, then the answer is waiting for you on the stack. If the user clicked Cancel, InstallOptions::show will return "cancel" on the stack. It'll return "success" for Next and "back" for Back.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2007
Location: Littleton, CO
Posts: 3
|
The Leave function is definitely being called when I click Cancel. I am using the ExperienceUI, so I have no InstallOptions::show call. Would that make a difference?
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
That is a known bug with ExperienceUI.
Stu |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Oct 2007
Location: Littleton, CO
Posts: 3
|
Is there a workaround?
Quote:
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|