junrau
9th October 2007 23:27 UTC
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?
kichik
9th October 2007 23:33 UTC
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.
junrau
10th October 2007 16:18 UTC
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?
Afrow UK
10th October 2007 16:52 UTC
That is a known bug with ExperienceUI.
Stu
junrau
10th October 2007 16:58 UTC
Is there a workaround?
Originally posted by Afrow UK
That is a known bug with ExperienceUI.
Stu