Skip page
Hi.
I use Modern UI. If i select check box fnd click "Next", my custom page should appear, if i not check it, after "Next" I should show finish page.
Thanks and sorry for bad english :)
Archive: Skip page
Skip page
Hi.
I use Modern UI. If i select check box fnd click "Next", my custom page should appear, if i not check it, after "Next" I should show finish page.
Thanks and sorry for bad english :)
I asked a very similar question just yesterday, answers in there, take a look:
http://forums.winamp.com/showthread....hreadid=268983
Edit - Ok, I can't post a URL? Just take a look at my profile and find the thread I started.
thanks, but i dont understend it.:(
please,someone, show me peace of code
Unable to understand exactly what are you trying to achieve, could you explain plz?
I'll try.
In installer it is check box, if it checked i show next custom page, and then finish page. If it uncheked i show only finish page.
In 2nd custom page create function before the call to InstallOptions plugin, you need to check the state of the control by reading the 1st page's ini.
If state is 0 (no checked) call abort to skip the current page.
I'm presuming you've got a custom page with a checkbox already made? In that pages leave function you'll need to read the state of the checkbox using MUI_INSTALLOPTIONS_READ.
Straight from the ModernUI readme:
For example, you can use the MUI_INSTALLOPTIONS_READ macro in a section to get the user input:
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "ioFile.ini" "Field 1" "State"
You'd either read the state straight into a program variable or copy it from the register to one, then in the "Pre" function of your custom page, check that variable (most likely with IntCmp), and call "abort" if you want the page to be skipped.
thx Red Wine and Snixtor