Hi,
How would I enumerate that list during the install to create a new registry value for each item in that list ?
The best approach is to write the values in the registry like they are kept in the AI_LISTBOX_DATA property. This way, the registry entry will be managed by Windows Installer and it will be parsed by your application.
However, if you want to create a registry entry for each value in the AI_LISTBOX_DATA property you can use the
Split() function. This function allows you to parse the value of the property inside the custom action. With this approach you will gain access to all the values in the AI_LISTBOX_DATA property which are separated by the "|" character. These values can be written directly in the registry or they can be placed into properties that are used by registry entries.
Note that a registry entry created by a custom action is not managed by Windows Installer. Therefore, an uninstall will not remove a registry entry created by a custom action. Also, the values you mentioned are always written in the AI_LISTBOX_DATA property, not in MY_LISTBOX.
Regards,
Cosmin