awato
Posts: 4
Joined: Thu Jul 06, 2023 1:21 pm

Search property does not resolve

Dear Team,

we have a problem with a file search.
We have created a search for registry values that works fine. That is, the correct value is displayed when we click on "Test Search".
But when we use this created search as a property for a file search, the registry value is not resolved.

In detail:

We want to search for a file in a specific folder, but the folder location is "dynamic". This means that the user can change the location of the folder during the installation. For this case, we have a registry entry created during the installation with the corresponding path as value, thus we can read the location after the installation.

If we now create a file search and want to specify the path using the previously created registry search, the path is not resolved:

Image

Image

Image

Do I miss something?
I would be very grateful if you could help me.

Thank you so much and wish you a wonderful day.
Thomas
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Search property does not resolve

Hello Thomas and welcome to our forums,

I am afraid that this is not possible by using our predefined support for searches. This is happening because the Windows Installer does not guarantee the searches order, so a new search should not use the result of another search.

As an alternate solution, you can create your own custom action (e.g. PowerShell, VBS) that will search for the respective registry entries.

Hope this helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”