Hello Erik and welcome to our forums,
If unchecked, it works as expected. Is this intended?
No, that is not intended. This, indeed, seems to be a limitation in what regards our support for extended searches (like the one that you are using).
I have talked to the development team and hopefully this will be fixed in a future version of Advanced Installer. Unfortunately, for the moment, I can not give you any estimation on when this will be fixed. I will update this thread as soon as this will be fixed.
Until then, however, you can use one of the following workarounds:
1 - As you have already stated, if you uncheck the "Check launch conditions before searching for prerequisites" option, the bug does no longer reproduce.
2 - As I have earlier stated, this is a limitation to our predefined support for extended searches. However, if possible, you can use a normal search and you will no longer encounter this behavior. However, a normal search only operates with
registry values, not with registry keys. Here is a small example on how you can utilize a normal search:
In this example, I will use the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
and the following registry value: InstallRoot
- Please go to
"Search" page and create a new search: right click ->
"New Search" -> right click on the newly created search ->
"Add search location" ->
"Registry"
- In our example, the search can look something as it follows:
Root: HKEY_LOCAL_MACHINE
Key: SOFTWARE\Microsoft\.NETFramework
Name: InstallRoot
Type: Retrieve the raw value
Upon pressing the "Test Search" button from the toolbar (on my machine), this search will return the following value:
C:\Windows\Microsoft.NET\Framework\
- Now you can go to "Launch Conditions" page -> "Custom" tab and add a new launch condition as it follows (from our example):
RESULT_PROPERTY = "C:\Windows\Microsoft.NET\Framework\"
"RESULT_PROPERTY" is just the default name for my search. You can configure that as you wish.
Hope this helps.
All the best,
Catalin
FOLLOW US
Get the latest news in Application Packaging