Function "leavePageComponents" is called when I press to "Next" button and press to "Back" button. I don't want the operator "MessageBox" was called when I press to "Back" button. If I will can to know what pressed "Back" button I will call operator "Return" after this and resolve my problem.
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leavePageComponents
!insertmacro MUI_PAGE_COMPONENTS
...
...
Function leavePageComponents
MessageBox MB_ICONEXCLAMATION|MB_OK "Hello ..."
FunctionEnd
How to know that button was pressed?
Hello ...