JediKnight2
20th December 2006 15:02 UTC
Jumping to next section
I finally have gotten the JRE detection working right. It has taken flippin two days of reading thru the code to understand what it was doing and when. It now detects everything fine and moves to do the proper install.
I have one part left to figure out. Is there a way to jump to the next section. Say I set a variable to "a" and at the beginning of a section I check the variable, if true it continues down the line, if false it basically needs to skip the section. Right now I have it going to End: which shows a complete page with a next button, I would rather it go straight to the beginning of the next section instead of End: of the current section....
Right now at the beginning of the section I have this
Strcmp $DOWNLOAD_FLAG "download" Install End
Red Wine
20th December 2006 15:18 UTC
Sections are executed in tact once you hit the button Install, how does this show a Next button when you jump to the end of a section? Do you have 2 InstFiles pages or do you mean functions used on custom pages?
JediKnight2
20th December 2006 17:26 UTC
I have two installs going on depending on JRE detection...I have attached my nsi file
JediKnight2
20th December 2006 18:19 UTC
Well...I dont know exaclty why, but I was tweaking things and putting in some additional features and put in the line
!insertmacro MUI_PAGE_FINISH
and now it goes to the right starting point if JRE is installed...
Id like to know WHY....just so I know.
kichik
22nd December 2006 11:22 UTC
The problem seems to be that myPreInstfiles is defined as the directory page's pre function, and not instfiles'.