schwarzsurfer
Posts: 49
Joined: Wed Feb 10, 2016 11:06 am

How to show one or more dialogs depending on checkboxes

Hi,

I have 3 optional dialogs in an installer project. I want to add two checkboxes and depending on the user selection the installer should show one ore more of them. I tried to do it like this tutorial:

http://www.advancedinstaller.com/user-g ... ialog.html

and it works fine for each dialog "subtree", if I check only one checkbox. But if I check both checkboxes and want do see all dialogs, it still shows only dialogs from the first checkbox. So there are three dialogs:

dia1
dia2
dia3

this is how it should work:

checkbox1 = true -> show dia1
checkbox2 = true -> show dia2 + dia3
checkbox1 + checkbox2 = true -> show dia1 + dia2 + dia3

I tried to change the condition from ' ShowMigrationDialog = "True" ' to ' ShowMigrationDialog = "True" OR ( ShowMigrationDialog = "True" AND ShowStorageDialog = "True") ' but it still didn't work...

How can I get this to work?

Thank you!

Marian
Attachments
checkbox.JPG
checkbox.JPG (37.66 KiB) Viewed 3226 times
tree.JPG
tree.JPG (26.81 KiB) Viewed 3226 times
Ich weiß, dass ich nichts weiß!
schwarzsurfer
Posts: 49
Joined: Wed Feb 10, 2016 11:06 am

Re: How to show one or more dialogs depending on checkboxes

I fixed it. I had to play around a little bit with the conditions for "show dialog" on the "next" and "back" buttons but now everything works fine.

Greetings
Marian
Ich weiß, dass ich nichts weiß!
Eusebiu
Posts: 4955
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to show one or more dialogs depending on checkboxes

Hi Marian,

I'm glad you got this working. You can also take a look on the "How to display some dialogs depending on the selected features" tutorial that describes a similar scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”