I am writing an installer for an application. As part of that I am required to get the country name the user selects. If the user selects United States, I want the value US in my program, i.e. 2 letter code.
Currently I implemented the combo box like this:
<Control Id="CountryList" Type="ComboBox" Sorted="yes" ComboList="yes" Property="COUNTRY" X="30" Y="118" Width="150" Height="15">
<ComboBox Property="COUNTRY">
<ListItem Value="United States" />
<ListItem Value="India" />
<ListItem Value="Australia" />
<ListItem Value="United Kingdom" />
</ComboBox>
</Control>
Can anyone please suggest me how to change the property COUNTRY
to US
or IN
or UK
etc. I mean 2 letter code.
Also I have to add all possible countries. Any better way to accomplish this?
Related to this, I want the first combobox to list all the countries. The second combobox can then show the states that belong to the country. :)