ComboBox Properties being replaced with 'name_1' - Advanced Installer Community
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

ComboBox Properties being replaced with 'name_1'

I have a working AIP but need to modify a dialog.

Created a new dialog and transferred the items across to the new one.
There are a number of ComboBoxes and all of their property names have been replaced with the same name but with an additional '_1' (Underscore and number)
I've then removed the original dialog that it's replacing.

Tried to reattach the original property by manually typing and by selection but it will only allow the above naming.
I've also tried removing and replacing the combobox entirely and tried to connect the property - no joy.

Any help would be appreciated.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: ComboBox Properties being replaced with 'name_1'

Hi Ian and welcome to our forums.

The property related to a control is modified only if you copy and paste that control somewhere else. The copied control will have the property modified, but the original control will keep its property.

Is there another scenario when that property is modified to you? Can you give me a step by step test case to reproduce this?

If you want to modify the property, you can simply write a new name then press the "Enter" keyboard button.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: ComboBox Properties being replaced with 'name_1'

Hi Eusebiu,

So I backed up my AIP and opened it as a second AIP – side by side.
On the original, I deleted the dialog box completely.
I then moved to the backup and the same dialog box, copied the contents (text and comboboxes)
And pasted them into the new dialog box on the original.

I did this with three dialog boxes, one with text entry fields, one with combo’s and the
Other was mixed.

The fault only happens with the combo’s on both the combo dialog and on the mixed. Text
Entry fields were ok.

Do you mean modify the property name? If so, I’ve tried this but it still reverts
To the underscore and 1.

I have attached some screenshots for you.

Best regards,

Ian
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: ComboBox Properties being replaced with 'name_1'

Is there a way to find the combo box so I can identify where the conflict is? (two the same)
I’m checking Table editor and the ‘content’ areas – your explanation makes good sense but I can’t seem to find
The conflict.

Best regards,

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

Re: ComboBox Properties being replaced with 'name_1'

Hi Ian,

In the "Control" table you can order the list by the "Property" column, search for the property of your combobox, then right-click on that row and use the "Go to definition" option.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: ComboBox Properties being replaced with 'name_1'

Ok thank you.

I have tried editing the tables and (green line) edited out the offending tables. Followed up with a build and a test install.
One of the fields I also pulled using notepad to edit it manually.

On install I can see that the field that I edited manually was back to normal however all of the others were still an issue.
I will begin the manual process of modifying the aip.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: ComboBox Properties being replaced with 'name_1'

Hi Ian,

Please keep in mind that it is not recommended to edit the project manually in a text editor because it can get corrupted. However, if you try this, you should first save a backup copy of the original project, so you can revert to it in case of need.

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

Return to “Common Problems”