[MSI] Search inside INI fileΒΆ
Windows Installer can search for a specific INI field inside the INI file on the target system during an installation (AppSearch). The search result is saved to a public property that can be used in various condition statements to determine the outcome of the installation (e.g. install components, run custom actions, etc.).
Important
Precondition: Open an MSI package in MSI Editor (see Open MSI/MST).
- Go to the Package Designer > System search tab.
- Select New search from the context menu.
- Select the Inside INI file search area and click Next.
- Select the search Target, enter an INI file name, Section and Key to search. If the INI key may contain more than one field (e.g. value), enter its number or tick Read entire line. Then, click Next.
- Specify a public property (contains no lowercase letters) where to save a path to the found file/folder. It could either a new property, initialized in runtime; or an existing one from the
Property
table. Use this property in various condition statements to install components, run custom actions, etc. Click Finish to add the system search entry.
Note
PACE Suite covers the whole range of application packaging tasks - learn more.
Try PACE Suite for free - 21 days no obligations unlimited trial with all functions unlocked.