Searching for InstallAnywhere Texts
InstallAnywhere 2024 R2
You can search a project to locate all references to a specific text. You can choose to search for a text in any of the installation sequences (Pre-Install, Install, Post-Install, Pre-Uninstall, Uninstall, Post-Uninstall) and can choose to search features and/or components. Search results are displayed on the Search Results dialog box.
Performing a Search for a Text
To search your project for all references to a specific text:
1. | Open a project in the Advanced Designer. |
2. | On the File menu, click Search (or press Ctrl + F). The Search Results dialog box opens. |
3. | In the Enter Text setting, enter the name of the text you want to search for. |
4. | If you want to search for a variable, select the Variable Search check box. |
Note:If the Variable Search check box is checked, it will enclose with a dollar sign symbol ($) before and after the variable.
5. | If you want to search for a string and variable, unselect the Variable Search check box. |
Note:If the Variable Search check box is unchecked, it will not be enclosed with a dollar sign symbol ($) before and after the text.
6. | If you want to perform a case-insensitive search, select the Ignore Case check box. |
7. | In Search for text in area, select the installation phases (Pre-Install, Install, Post-Install, Pre-Uninstall, Uninstall, and/or Post-Uninstall) and product elements (Install Set, Features, and/or Components) that you want to search. |
8. | Click the Search button. |
InstallAnywhere shows the results of the search in a tree structure with the total number of texts that were found listed at the top. Items that are associated with the selected variable are listed below, and grouped by category.
Performing a Search and Replace of a Text
To perform a search and replace of a specific text:
1. | Search for a text, as described in the afore mentioned instructions. |
Note:Enter the full text in the Enter Text setting, and do not select the Partial Search check box.
InstallAnywhere shows the results of the search.
2. | To replace all instances of the found text with a replacement value, click the Replace All button. The Replace Text dialog box opens. |
3. | In the Replace Text with setting, enter the replacement value. |
Note:It is mandatory that you always enter the dollar sign symbol ($) before and after the replacement text. For example, instead of searching for $NAME$ and replacing it with NEWNAME, you should replace it with $NEWNAME$.
4. | Click the Replace All button. |
InstallAnywhere replaces all instances of the text with the replacement text.
About Replacing Magic Folder Variables
If you choose to replace a magic folder variable with another variable, InstallAnywhere simply copies the children of the source magic folder to the destination magic folder variable.
Note:There are known issues regarding replacing the $USER_INSTALL_DIR$ magic folder. Therefore, searching for and replacing the $USER_INSTALL_DIR$ magic folder is not recommended.
See Also