Hello,
In order to achieve this you can add a "file search" (e.g. MY_FILE) on Search page to search for the "X.exe" file (just add "X.exe" file in the "Name" filed from "File To Search" right pane). Then, select your file search associated property (i.e. MY_FILE) and from the context menu choose "Add Location -> Folder"). In the "Directory Properties" right pane set the following:
In this way the file will be searched on all drives using the above depth. However, considering the depth value, as you already noticed this search could take a substantial period of time.
Also, as another option, you can create your own custom action which will get the related path from the registry value and put it into an installer property (e.g. REGISTERPATH). Then, you should add a file search which will look for the file in the following location:
The custom action should be added before "Searches" action group. You should proceed like this because you cannot add another registry search into "Search" page. All searches from "Search" page are executed randomly at install time, therefore you cannot add a registry search in "Search" page whose associated installer property to be used inside another search.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging