Summary
InstallShield includes extensive XML functionality, including the ability to create and modify XML files on a user's system. This article describes functionality included in the System Search Wizard for Basic MSI projects to search for an XML file and read data from it.Synopsis
InstallShield includes extensive XML functionality, including the ability to create and modify XML files on a user's system. This article describes functionality included in the System Search Wizard for Basic MSI projects to search for an XML file and read data from it.Discussion
For this example, consider the contents of Repositories.xml from the Repositories subdirectory of InstallShield:<?xml version="1.0" encoding="utf-8"?>
<Repositories>
<Repository Key="Local" DisplayName="Local"
Description="This is your repository where you can store elements on your system only."
Path="C:\My InstallShield 10.5 Projects\LocalRepository\repo.xml"
Local="1"/>
<Repository Key="Network" DisplayName="Network Repository"
Description="Exported project elements for use in multiple projects."
Path="\\Server\Everybody\SharedElements\repo.xml" Local="0"/>
</Repositories>
For this example, suppose you want to read the Path attribute from the Repository element that has its DisplayName attribute set to "Local.?
To set up the search, launch the System Search Wizard by visiting the System Search view in the "Behavior and Logic" view group, right-clicking in the System Search list, and selecting Add. In the System Search Wizard, select the search type "XML file value".
In the Details panel, you specify the name and location of the XML file. When specifying the location of the file, you can click Browse to open the Browse for Directory panel, with which you can build up the search path based on existing Directory properties. In this case, the desired path is [ProgramFilesFolder]InstallShield\2015\Repositories. Note the year should be changed depending on the version being used.
Next, in the Data panel, you specify the information you want to read from the XML file, if it is found. The data is specified using XPath syntax; for this example, the expression: /Repositories/Repository[@DisplayName='Local'] indicates to look for the Repository subelement of the root Repositories element that has its DisplayName attribute equal to "Local". Furthermore, in the Look For field you specify whether to read the value of an element's attribute, the element's contents, or just to detect whether the element exists. In this case, the search reads the value of the Path attribute of the detected element.
Finally, as with any system search, you specify the name of a public property in which to store the search results. In this case, the value of the specified attribute will be stored in a custom public property called VALUE_FROM_XML_FILE.
You can use the value of the search property in any way appropriate for your project. To test the example, you can display the value of the search property on the InstallWelcome dialog box by adding a Text control with its Text value set to VALUE_FROM_XML_FILE = [VALUE_FROM_XML_FILE].
Was this helpful?
Related Articles
System Search Wizard 3Number of Views Setting INSTALLDIR Based on a System Search and Install a Product to an Existing Destination 16Number of Views Basic MSI Project: Launch Executable .exe File If the .exe File Is Found Using a System Search and Force a Reboot 6Number of Views Property Does Not Get Set Using System Search 3Number of Views Workspace Exception: Unable to read the scm data xml file for workspace XXXX 5Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago