Hello Frank,
That is possible, but not by using the "New extended search" option. Instead, you can use a simple search (i.e. right click on the
"Target Computer" -->
"New Search") then add a search location for the earlier created search by right clicking on the search -->
"Add search location" -->
"Registry" with the following arguments:
Code: Select all
- Root: HKEY_LOCAL_MACHINE
- Key: SOFTWARE\JavaSoft\Java Runtime Environment\1.8
- Name: JavaHome
Now, in order to set the APPDIR property to the value of the search, please proceed as it follows:
- go to
"Custom Actions" page and add a
"Set installer property" custom action
with sequence. To add a custom action with sequence, simply press the "Add custom action with sequeunce" button which is placed to the right side of the custom action name.
- the custom action arguments should be as it follows:
- Property:
APPDIR
- Value:
[TheNameOfYourSearch] (by default, the name of the search is
"RESULT_PROPERTY", but that is easily changeable). By default, every search saves its value in a property which takes the search name.
- the last step is to drag and drop your
"SetProperty" custom action from
"Install Execution Stage" (where it is added by default) to
"Wizard Dialogs Stage" and place it between the
"Searches" action group and
"Paths Resolution" action group.
Please let me know if that helps.
All the best,
Catalin