Old 18th January 2009, 11:37   #1
MarWestermann
Junior Member
 
Join Date: Jan 2009
Posts: 5
nsDialogs: dynamical conf-windows

Hi,

I have some section groups in my installer. for each group I created a configuration-window, where the user has to input additional informations. but how can I suppress a dialog, when the user deselected a group. (I dont need a conf-dialog for a feature which shouldn't be installed)

Thanks for every help you give,

Marco
MarWestermann is offline   Reply With Quote
Old 18th January 2009, 12:44   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Check whether the section is deselected (using SectionGetFlags or if you're using logiclib - and you should - use '${Unless} ${SectionIsSelected} <section>') and if it is, call Abort in the page (dialog)'s creation function to skip that page.
Animaether is offline   Reply With Quote
Old 18th January 2009, 12:46   #3
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
When the create dialog function is called, retrieve the condition under which the dialog should be displayed, and if it's not true add abort to skip the current dialog.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 18th January 2009, 14:27   #4
MarWestermann
Junior Member
 
Join Date: Jan 2009
Posts: 5
Hi, I got it:

for all who have the same problem:

add the function .onSelChange which is called when the user changes the selection of the components. Here you can remember the users decision in variables.

in the functions of the custom page "abort" the function at the beginning, when the dialog should't be shown.

best regards,
Marco
MarWestermann is offline   Reply With Quote
Old 18th January 2009, 15:17   #5
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
.. there's no need to store variables, or use .onSelChange . But sure, that works too.
Animaether is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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