Hello,
I've attached a sample created with version 11.3 of Advanced Installer which implements a similar scenario. Just place the archived "test.ini" file on the [WindowsVolume] location on target machine and, then build and run the setup project.
Basically, you need to create a dummy component (add a dummy registry value in "Registry" page) for every line you want to update in the target INI file. Then, go to "Files and Folders" page and create a text replace operation for every line you want to update in the INI file and assign them correspondingly to the components of the dummy registries. As you can not create two or more text replace operations which target the same file, you should add sub-folders under parent folder of the INI file containing each one a text replace operation targeting the same filename. Also, you should enable for all created sub-folder the "Install folder content into the parent folder" option from
"Folder Properties" tab. Next, you should condition the components containing the text replaces, from "Organization" page, to be installed only when the check list control associated property contains a specific value.
If you have any question let us know.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging