![]() |
#1 |
Junior Member
Join Date: Dec 2009
Posts: 29
|
Go to a NSIS page!
HI.
![]() I read the documentation about how to jump a NSIS page, so i need to jump to a page specific if a user select one option u other option. Well I set this in my script: PHP Code:
PHP Code:
But i confuse because the third page of NSIS is my custom page and then it shows me the install page. What is the order of the NSIS pages that shows with "StrCpy $R9 3" or for example 1,2,3,4, etc... ? Last edited by thanatos83; 6th September 2010 at 13:14. |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
It's a relative jump. If you pass '3', it should jump three pages forward. So where you end up depends entirely on where you're jumping from.
Also, why on earth would you want to jump 120 pages? o__O |
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Going forward any number than there are pages simulates a Cancel click.
Stu |
![]() |
![]() |
![]() |
#4 | |
Junior Member
Join Date: Dec 2009
Posts: 29
|
Quote:
But there's also a problem, because the first condition work nice and goes to install files but if i select de second and try to jump to !insertmacro MUI_PAGE_DIRECTORY page then the installer generated an error and exits from installer. May be it is a bug ? ![]() |
|
![]() |
![]() |
![]() |
#5 |
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
no idea about the crash (might need full example code)... but if you only need to move forward, I'd recommend using the technique of calling Abort in the pages' Pre function. Use a variable to indicate which page you want to land on and call Abort in every page that is not the page you want.
|
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Dec 2009
Posts: 29
|
hi.
I get the same problem... crash if i jump to directory page, maybe the reason is the value 1 of StrCpy $R9 1 because it's reserved value for next page ?. I put my script, any help please! PHP Code:
![]() |
![]() |
![]() |
![]() |
#7 | |
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Quote:
![]() Those who want to poke at it, the following is missing (just put it at the top): PHP Code:
![]() As you only need to go +1 page anyway, you can just -not- call "RelGotoPage" at all, and NSIS will take the user to the next page as usual ![]() |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Dec 2009
Posts: 29
|
Exactly, i removed the part in the condition:
${Else} StrCpy $R9 1 ; va hacia la página de seleccionar directorio Call RelGotoPage ${EndIf} So it seems NSIS was getting in a constant loop, and now work fine... Thanks for help ![]() |
![]() |
![]() |
![]() |
#9 |
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
No prob
![]() ![]() |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|