[wix-users] Getting the text displayed in a ComboBox
Axel Holzinger
aholzinger at gmx.de
Thu Nov 26 13:53:26 PST 2015
Hello all,
I finally managed to dynamically fill a ComboBox with values by using a
custom DLL and calling WcaAddTempRecord. Imagine a list of installed hard
disk drives names. I gave each entry a "Value" with a fixed template, i.e.
"ValueX". Let's say the property name of my ComboBox is "DISKDRIVES".
Example:
Text="Samsung SSD 850 Pro" Value="Value1"
Text="WD 500GB" Value="Value2"
Text="Seagate Barracuda" Value="Value3"
I added both, Text and Value to be able to select an item from the installer
by adding the line
<Property Id="DISKDRIVES" Value="Value1"/>
Now at a later time in my installer I need the information that was selected
by the user in the ComboBox. If I now use "[DISKDRIVES]" what I get is the
Value, i.e. "Value2", but what I need is the text, i.e. "WD 500GB".
How can I read the text, i.e. "WD 500GB"?
Thanks
Axel
More information about the wix-users
mailing list