Winamp & Shoutcast Forums

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

machiel 5th September 2007 12:29

Skip custom page
 
Hello everyone,

Is it possible to skip a custom page, depending on
a certain variable. Suppose I only want to show a
certain page when a certain condition is fulfilled,
how do I do that?

Many thanks,

Machiel

Wizou 5th September 2007 12:59

Taken from Help file:
code:

Page license skipLicense "" stayInLicense
Page custom customPage "" ": custom page"
Page instfiles

Function skipLicense
MessageBox MB_YESNO "Do you want to skip the license page?" IDNO no
Abort
no:
FunctionEnd
...



you can replace the MessageBox by a test condition

machiel 5th September 2007 13:19

Yes, but I wanted to skip the custom page.
However, I already discovered that inside the Function
corresponding to that page, I should simply not make a call to "!insertmacro MUI_INSTALLOPTIONS_SHOW" in case I don´t want to show the page

Wizou 5th September 2007 13:28

Right..
http://nsis.sourceforge.net/Skipping_Pages

Quote:

To skip a custom page, simply don't call the plug-in that shows the page, or use Abort in custom page function.


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.