- NSIS Discussion
- Back button is not working as expected?
Archive: Back button is not working as expected?
ilaiyaraja
7th September 2013 05:11 UTC
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 ?
MSG
7th September 2013 07:24 UTC
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?
ilaiyaraja
7th September 2013 09:42 UTC
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?
Anders
7th September 2013 19:02 UTC
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.
ilaiyaraja
10th September 2013 07:46 UTC
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?
MSG
10th September 2013 08:59 UTC
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
?
ilaiyaraja
10th September 2013 09:11 UTC
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?
MSG
10th September 2013 11:05 UTC
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.
ilaiyaraja
10th September 2013 11:30 UTC
(some page)->Show custom page->start menu page->user click 'Back' ->show custom page.
MSG
12th September 2013 08:48 UTC
That's just the normal NSIS behavior... o_O
Do you want the custom page to do something special if the user clicked Back?