Bug in Spawn Dialog - Advanced Installer Community
vigyanlabsmys
Posts: 73
Joined: Sat May 17, 2014 12:37 pm

Bug in Spawn Dialog

Hi,

Our Company Vigyanlabs Innovation Pvt Ltd has purchased Advanced installer,

I have attached the aip file. PFA.
In that I have created the custom dialog (NewDialog_1) and added edit box (property name = PROXYIP). If that field is empty I have added a spawn dialog.
If that field is empty that spawn dialog will pop up and if I click ok it will remain in same page, then if I click back button, the "Next" button will disappear and "Install" button is appearing. Why this is happening ?
Attachments
Test.aip
(53.14 KiB) Downloaded 396 times
Best Regards,
Dan
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Bug in Spawn Dialog

Hi,

We have analysed your project, and yes, we can reproduce the behavior.

But, I am afraid we cannot reproduce the dialogs' sequence in order to see on a step by step manner why this behavior appears.

Can you give us a step by step scenario of the creation of these dialogs in Advanced Installer?

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vigyanlabsmys
Posts: 73
Joined: Sat May 17, 2014 12:37 pm

Re: Bug in Spawn Dialog

Hi,

1. First I have changed the theme to "Surface-->WhiteSurface".

2. I have created custom dialog (NewDialog) and added fields (shown in attached file)

3. Then added another custom dialog "NewDialog_1", in that I created two radio button, if user clicks the "Connect via proxy", I have to display proxy fields or else hide that fields.
For field "ProxyServer IP/Hostname" I have made a check that if the Edit box (property name is PROXYIP) is empty, it will show a pop message and if user clicks OK it will return to same page. But if I click back button the "Next" button will disappear and "Install" button will appear. But if I remove that "Spawn Dialog", it will work fine.

Advanced installer version we are using is 11.6
Best Regards,
Dan
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Bug in Spawn Dialog

Hi,

After the Spawn Dialog is closed, the parent dialog, New_Dialog_1 in your case, is considered to have been acknowledged.
This is the reason why the button becomes "Install".

In order to control this behavior, you have to edit the two conditions on the Next button as in the attached screenshot.

You will have to set a similar condition to any dialog that is before the last dialog in the install sequence.

Kind regards,
Irina
Attachments
next_install_condition.jpg
next_install_condition.jpg (182.64 KiB) Viewed 5229 times
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vigyanlabsmys
Posts: 73
Joined: Sat May 17, 2014 12:37 pm

Re: Bug in Spawn Dialog

Hi,

I changed the condition according to your screen shot, first time it worked, but after sometime again problem occurred i.e if I click "Bypass Proxy Radio button" pop message is coming and if I click yes button it will remain in same page and if I click back button again next button will disappear and install button will come.

Attached project file. PFA

Regards,
Anand
Attachments
Test.aip
(61.03 KiB) Downloaded 397 times
Best Regards,
Dan
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Bug in Spawn Dialog

Hi Anand,

I managed to find the problem.
In the second condition from your .AIP file, an AND was replaced by an OR.

Here are the conditions again:

Code: Select all

For NewDialog_2:   AI_INSTALL AND (PROXYIP OR (NOT RADIOBUTTONGROUP_1_PROP_1 = "YES"))
For SpawnDialog: AI_INSTALL AND (NOT PROXYIP AND (RADIOBUTTONGROUP_1_PROP_1 = "YES"))
Let me know if now it works.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”