When upgrading my InstallBuilder version I receive an "Attribute value can only contain alphanumeric or '_' characters" error
asked 13 Sep '11, 07:08
Starting with InstallBuilder 4.3.0 we implemented a restriction on the possible values for
The change was prompted as part of an effort to validate the project XML to catch mistakes at build time rather than at installation time. In the case of choice options, the idea was to prevent empty values, values with spaces or values with invalid characters, such as "(" that could interfere with some InstallBuilder constructs when referencing variables.
If you use variables that may contain non alphanumeric characters as the value for a option in a choiceParameter, your project files may be affected by this change. Below you can find an example of a code that would give the "Attribute value can only contain alphanumeric or '_' characters" error.
In this case the simplest solution will be to substitute the variable used in the value attribute by a fixed valid value. In most cases this change would not affect the implementation logic of your installer.
Then, if you want to recover the text of the selected entry (not the actual selected value) you could use:
answered 13 Sep '11, 07:11