Using SpawnDialogs - Advanced Installer Community
MichaelD
Posts: 43
Joined: Tue Jan 12, 2016 10:32 am

Using SpawnDialogs

Hi

I'm using Advanced Installer 12.7.1 and don't get SpawnDialogs how I want them.
I want to set a property based on yes/no of the SpawnDialog.

If I call the child dialog on the next button published events I get the property set, but either the next dialog is not displayed or the SpawnDialog stays visible.
If I call the child dialog in the init events not the child dialog is closed but also the current main dialog sequence.

I tried every combination of Close current dialog and Display a specific dialog on the SpawnDialog buttons and nothing works.

What I want:
Dialog A clicking Next
SpawnDialog with Yes/No Question
Dialog B appears hiding controls based on Property set by SpawnDialog Yes/No

Any chance to achieve this with advanced installer?

Kind regards,
Michael
MichaelD
Posts: 43
Joined: Tue Jan 12, 2016 10:32 am

Re: Using SpawnDialogs

While playing around I found some bugs:
- "Display a child dialog while a condition is true" has a description that the dialog is displayed while condition is false. The description seems to be right.
- I can cut this populate event and paste it in init events, but then I can't edit it any more
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Using SpawnDialogs

Hi Michael,

The recommended way to achieve what you need is to use the "Display message box" predefined custom action. Just add it without sequence, then use it on the button you need and set the property based on the user's choice.
- "Display a child dialog while a condition is true" has a description that the dialog is displayed while condition is false. The description seems to be right.
Indeed, this is an issue, we will update it in a future version of Advanced Installer. Thank you for reporting it to us.
- I can cut this populate event and paste it in init events, but then I can't edit it any more
Some events can be added only as published events and this problem appears when you try to copy an event that is not supported as an Init event. We will add a validation so that those specific events cannot be pasted in the "Init Events" tab anymore.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaelD
Posts: 43
Joined: Tue Jan 12, 2016 10:32 am

Re: Using SpawnDialogs

Hi Eusebiu

I got it working with the "Display Child dialog while a condition is true" on the next button.
But I still think it is a bug that when calling display specific dialog in the spawndialog the spawndialog does not disappear.

Kind regards,
Michael
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Using SpawnDialogs

Hi Michael,

I'm glad you got it working. I will investigate the problem you mentioned and fix it in a future version if it is a bug.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
iske
Posts: 11
Joined: Tue May 03, 2016 3:07 pm

Re: Using SpawnDialogs

Hey Advanced Installer Team,

I've noticed the same issue like MichaelD today. Maybe you should think about changing the behaviour.

Greeting André
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Using SpawnDialogs

Hi André,

I'm afraid that this is the normal behavior. The spawn dialog is displayed as a child dialog, so if a "Display a specific dialog" event is triggered on one of its buttons, the "Close the current dialogs" event is not triggered anymore as two events of this type cannot be triggered at the same time, hence, the spawn dialog does not disappear. That is why we recommend using a "Display message box" custom action in such scenarios.

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

Return to “Common Problems”