Hello Mark,
Please note that we have added support in Advanced Installer to search an XML element text by the XML element name only starting with version 12.5 of Advanced Installer. So, to achieve what you want you should use at least version 12.5 of AI.
Also, please note that all XML locator searches defined in "Search" page are performed at the very beginning of the installation during the "AI_XmlLocator" custom action before the dialogs are displayed. So, to configure the "AI_XmlLocator" action to also execute on one of your installation dialog (e.g. after the "MY_SettingFile" property is set) you can workaround like this:
1. go to "Dialogs" page and select the "FolderDlg" dialog
2. on the [Next] button add a published event like this:
- Control Event: Execute custom action
Argument: BrowseForFile
Condition: MY_SettingFile
3. go to "Table Editor" page and select the "ControlEvent" table
4. edit the "Argument" field of the "FolderDlg -> Next -> DoAction" row like this:
AI_XmlLocator
5. rebuild and test again your project
Please note the above workaround requires at least an "Enterprise" project type to be used.
Also, as a side note please be aware that instead of using a private
property name for your "DBFolder" property (used to create the property-based folder) you should use a public property name (i.e. DB_FOLDER). This way the value of your property won't be reset when the installation passes from Wizard Dialogs Stage to the Install Execution Stage.
Here it is attached a modified version, using AI 12.6.1, of your "REadXML.aip" project which implements your requirements.
If you have any questions or doubts just let us know.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging