elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

Set ComboBox property from Custaom Action

Hi

I have same problem with combobox behavior. My combobox contain names of countries so there is more then 200 items indexed from 1. I have custom action where I want to set predefined country. There I call MsiSetProperty with name of property associated with combobox and value of country (index). But my combobox is still empty and have to set it value manually. This is not refresh problem because this custom action is called before dialog shows.

What is for me absolute unaccountably is that I have another combobox with only 3 values and there it works. I can set value from CA and after dialog is showed than combobox has valid predefined value. I can not find difference between those two comboboxes.

Thanks for any reply.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Set ComboBox property from Custaom Action

Hi,

Maybe you are not passing the name of the property correctly. Also, make sure you are using a public property for the combobox, i.e.
no lower case letters are present in its name.

If the problem persists please send us the aip file and a verbose log to support at advancedinstaller dot com.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

Re: Set ComboBox property from Custaom Action

Hi

I think I found problem. My property name is too long, 33 chars. When I cat it to 30 it starts working.

regards, elanius

Return to “Common Problems”