Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 27th January 2003, 00:58   #1
treaz
Member
 
Join Date: Jan 2003
Posts: 78
Question skip page during install

Hi,

May I know if it is possible to skip a customised page if the user decides not to install a certain component? If that is possible, how should I go about scripting it?

Thanks.
treaz is offline   Reply With Quote
Old 27th January 2003, 10:10   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
To skip a custom page just don't call the plug-in that creates the page itself. For example:

PHP Code:
Page custom customPage

Function customPage
  SectionGetFlags 
${sec1} $0
  IntOp 
$$& ${SF_SELECTED}
  
IntCmp $${SF_SELECTED0 skip skip
    
# create page here
    # InstallOptions::dialog ... for example
  
skip:
FunctionEnd 

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th January 2003, 17:09   #3
treaz
Member
 
Join Date: Jan 2003
Posts: 78
Hi,

May I know how do I find out which section has been checked?
I dont quite get this:

PHP Code:
${SF_SELECTED
What is the above?

Thanks.
treaz is offline   Reply With Quote
Old 27th January 2003, 17:23   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
SF_SELECTED is defined in the one-section.nsi example and is exaplained in the documentation about SectionSetFlags.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th January 2003, 18:34   #5
treaz
Member
 
Join Date: Jan 2003
Posts: 78
Talking

Thanks a lot! Got it solved.
treaz is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump