Same property name for 2 checkbox

Having trouble running Advanced Installer? Got a bug to report? Post it all here.
Post Reply
prerak6962
Posts: 67
Joined: Mon Dec 08, 2014 5:26 pm

Same property name for 2 checkbox

Post by prerak6962 » Tue May 21, 2019 10:37 am

Hello,

In one of my projects, I have 2 dialogs, one in "First Time Install" and another in "Maintenance".
Both of them are exactly same.

Recently, while an update I added a checkbox in both of them.
Now, I want the "Proverty Name" for both of them to be same, but it won't allow me to do that. When I change the name for the second one, it resets to the default value.

The motive behind this, is to set the property of this checkbox as persistent so I have the same value during the maintenance.
Is this something which is not supported or am I missing something?

I have attached a sample project which demonstrates the issue. I have added 2 new dialogs with check box in each of them. But I am unable to set the same "Property Name" for them.

Thank you.
Prerak
Attachments
CheckBoxTest.aip
(23.22 KiB) Downloaded 8 times

Eusebiu
Posts: 4566
Joined: Wed Nov 14, 2012 2:04 pm

Re: Same property name for 2 checkbox

Post by Eusebiu » Wed May 22, 2019 3:10 pm

Hi Prerak,

I'm afraid that this is not supported because of the design of the "Checkbox" table in a MSI package. Two check boxes with the same property are not supported.

In order to achieve what you need, you can use two different properties for your check boxes, then set one property through a "Set installer property" event based on the value of the other property.

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

Post Reply