Archive: nsDialogs: dynamical conf-windows


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


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.


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.


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


.. there's no need to store variables, or use .onSelChange . But sure, that works too.