Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Skip page (http://forums.winamp.com/showthread.php?t=269036)

AstraS 5th April 2007 23:03

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 :)

Snixtor 6th April 2007 04:02

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.

AstraS 6th April 2007 21:11

thanks, but i dont understend it.:(
please,someone, show me peace of code

Red Wine 6th April 2007 21:40

Unable to understand exactly what are you trying to achieve, could you explain plz?

AstraS 6th April 2007 21:53

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.

Red Wine 6th April 2007 21:59

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.

Snixtor 10th April 2007 05:02

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.

AstraS 10th April 2007 07:47

thx Red Wine and Snixtor


All times are GMT. The time now is 04:19.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.