Old 7th September 2013, 05:11   #1
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
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 ?
ilaiyaraja is offline   Reply With Quote
Old 7th September 2013, 07:24   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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?
MSG is offline   Reply With Quote
Old 7th September 2013, 09:42   #3
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
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?
ilaiyaraja is offline   Reply With Quote
Old 7th September 2013, 19:02   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,172
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 10th September 2013, 07:46   #5
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
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?
ilaiyaraja is offline   Reply With Quote
Old 10th September 2013, 08:59   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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

?
MSG is offline   Reply With Quote
Old 10th September 2013, 09:11   #7
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
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?
ilaiyaraja is offline   Reply With Quote
Old 10th September 2013, 11:05   #8
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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.
MSG is offline   Reply With Quote
Old 10th September 2013, 11:30   #9
ilaiyaraja
Member
 
Join Date: Sep 2012
Posts: 81
(some page)->Show custom page->start menu page->user click 'Back' ->show custom page.
ilaiyaraja is offline   Reply With Quote
Old 12th September 2013, 08:48   #10
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
That's just the normal NSIS behavior... o_O

Do you want the custom page to do something special if the user clicked Back?
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
java, nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump