Search PageCopy link to this sectionLink to this section copied!

The Search Page allows you to set up system-wide searches. The object of your search can be either a component, registry key, folder, INI key or a file whose location can be found from a component key, registry key, folder or INI key.

Search page

The result of your search will be a string placed in a newly created Windows Installer Property which you can subsequently select using the Property Picker Dialog and use in a field of Formatted Type. This property will be displayed in the first level of the tree from the left-side pane and it will represent your search. On the tree's second level, under each defined Search, you can add one or more locations to search.

NoteIn the case of a successful search, the property associated with the search will contain a string. If the search fails the result property will be empty. The following conditions can be used if you need to identify if the search was successful or it failed:: RESULT_PROPERTY is always true for a successful search; NOT RESULT_PROPERTY is always true for an unsuccessful search, where RESULT_PROPERTY is the property associated with the search operation.

Caution!Windows Installer does not guarantee the searches order, so a new search should not use the result of another search.

NoteIf the installation package is run with full UI, the searches will be performed only once during AppSearch standard action from the Wizard Dialogs Stage.

Creating a new search using a wizardCopy link to this sectionLink to this section copied!

New Search WizardUse the [ New Search Wizard ] toolbar button, to quickly and easily set up a new search, following step-by-step directions.

Adding a Search LocationCopy link to this sectionLink to this section copied!

Add LocationUse the [ Add Location ] toolbar button or the “Add Location” context submenu. The location will be added in the left-side tree under the selected search. You can edit the location properties in the right-side panel. There are four types of locations you can search in:

  • Components
  • Registry
  • INI files
  • Folders

Testing SearchesCopy link to this sectionLink to this section copied!

Test searchUse the [ Test ] toolbar button or the “Test” context menu item while the "Searches" tree root (Target Computer) or a search property is selected. A MSI will be launched to test your searches and the results will be displayed in the Search Results. The searches are tested as following:

  • If the tree root is selected (Target Computer) is selected all the searches will be tested.
  • If a search is selected it will be tested along with all its locators.
  • If a locator is selected it will be tested along with its associated search.

Renaming SearchesCopy link to this sectionLink to this section copied!

Use the “Rename” tree context menu item or press the F2 key while a search is selected.

Removing Searches and LocationsCopy link to this sectionLink to this section copied!

Remove Use the [ Delete ] toolbar button, the “Delete” tree context menu item or press the Delete key while an element from the “Searches” panel is selected.

Topics