Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 23rd June 2003, 23:48   #1
DropF
Junior Member
 
Join Date: Apr 2003
Location: France
Posts: 18
Show a second Install Directory page conditionally

Hi,

I need some help: I would like to display a second Install Directory page only if a section is selected.

I'm able to display an InstallOptions dialog only if a section has been selected. I'm also able to show a second Install Directory page whenever. But I don't know how to mix the both .

Some detailed code would be nice, because I'm a beginner.

Thank you
DropF is offline   Reply With Quote
Old 24th June 2003, 03:23   #2
n0On3
Senior Member
 
n0On3's Avatar
 
Join Date: Jan 2001
Location: Barcelona
Posts: 314
Send a message via ICQ to n0On3
I use this to skip the components page when desired:

PHP Code:
Page Directory
Page Components NoComp
Page InstFiles

Function NoComp
  ClearErrors
  ReadRegStr $R6 HKLM 
"Software\NAME" "SKIP"
  
IfErrors "Cont"
  
Abort
  Cont
:
FunctionEnd 
In fact, I read this in NSIS Documentation.

I am pretty sure you can tweak it to meet your requirements. If not, try reading the documentation, or posting again (attaching script preferably).
n0On3 is offline   Reply With Quote
Old 25th June 2003, 10:35   #3
DropF
Junior Member
 
Join Date: Apr 2003
Location: France
Posts: 18
That's ok, my problem is resolved. In fact, I thought the function "Abort" would stop the installer, and not skip a page. So the solution is to always skip the second directory page (with "Abort"), and show it only if the good section has been selected.

Thank you
DropF is offline   Reply With Quote
Old 25th June 2003, 16:41   #4
n0On3
Senior Member
 
n0On3's Avatar
 
Join Date: Jan 2001
Location: Barcelona
Posts: 314
Send a message via ICQ to n0On3
yes, I asked the same.

'Abort' stops installer in a section, but in this function skips the page.
n0On3 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