Archive: Back button is not working as expected?


Back button is not working as expected?
I have create user defined custom page between license page and start menu page.

If i click back button from start menu page it goes to license page instead of showing my custom page.

Why this happening? How to display custom page when am i click back ?


NSIS will skip the custom page if the page's prefunction calls the abort command. You're probably calling abort in your prefunction by accident. Possibly you're using a variable to determine whether or not to skip the page, and this variable changes after the prefunction is run?


Thanks MSG.
you are correct using pre custom page we can manage custom page showing.
I have created custom page but i have called this from another function.

Function test
-----
call nsDialogPage
FunctionEnd

In this case how can i check pre page condition?


That code snippet is too small to understand what the problem is. I would suggest that you add some MessageBox calls to your code to find out where the problem is.


Thanks Anders.
!insertmacro MUI_PAGE_STARTMENU Application $DIRECTORY
This macro can be used to create shortcut menu folder page.
Now i want to check back of button this page is pressed? because if the user press back button of this page control can able to show move to customized page?
How to check back button pressed?


Your English is very confusing... Is this what you mean?

(Show some page) -> Skip your custom page -> Starmenu page -> User clicks 'Back' -> Show your custom page

?


yes.Your are correct MSG.
(some page)->custom page->start menu page->user click 'Back' ->show custom page.

How to check if back button of the Start menu page clicked?


I still don't understand.

Do you want this:
(Show some page) -> Skip custom page -> Starmenu page -> User clicks 'Back' -> Show your custom page

Or this:
(some page)->Show custom page->start menu page->user click 'Back' ->show custom page.


(some page)->Show custom page->start menu page->user click 'Back' ->show custom page.


That's just the normal NSIS behavior... o_O

Do you want the custom page to do something special if the user clicked Back?