MarWestermann
18th January 2009 12:37 UTC
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
Animaether
18th January 2009 13:44 UTC
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.
Red Wine
18th January 2009 13:46 UTC
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.
MarWestermann
18th January 2009 15:27 UTC
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
Animaether
18th January 2009 16:17 UTC
.. there's no need to store variables, or use .onSelChange . But sure, that works too.