johngraumann
Posts: 11
Joined: Fri Jan 04, 2008 12:14 am

Escaping '#' characters in PopulateComboBox

I want to add text to a combobox using the built-in PopulateComboBox custom action. However, the text might include the '#' character in some cases, which doesn't sit well with the AI_COMBOBOX_DATA string formatting.

For example, I want to add the values "DefaultAppPool" and "AppPool #1" to a combo box. This results in the following string being passed into the PopulateComboBox custom action:

APP_POOL_COMBO#10#5|DefaultAppPool|AppPool #1

What I end up with are these entries:

"DefaultAppPool"
"1"

Any idea how I can escape the '#' character so that PopulateComboBox recognizes it as part of the text/value?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Escaping '#' characters in PopulateComboBox

Hello,

I am afraid this feature is not supported. I have added an improvement on our TODO list. Thank you for your suggestion.
The improvement will be available in a future version of Advanced Installer.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
johngraumann
Posts: 11
Joined: Fri Jan 04, 2008 12:14 am

Re: Escaping '#' characters in PopulateComboBox

How would I go about populating the combo box some other way? Is it possible?
johngraumann
Posts: 11
Joined: Fri Jan 04, 2008 12:14 am

Re: Escaping '#' characters in PopulateComboBox

johngraumann wrote:How would I go about populating the combo box some other way? Is it possible?
Found it here:

http://www.advancedinstaller.com/forums ... php?t=1768

I will use that until PopulateComboBox can handle the '#' character as part of the text/value.

Thanks.

Return to “Common Problems”