Archive: How do I know if the cancel button was clicked?


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?


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.


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?


That is a known bug with ExperienceUI.

Stu


Is there a workaround?

Originally posted by Afrow UK
That is a known bug with ExperienceUI.

Stu