TheRocket
Posts: 43
Joined: Thu Jul 26, 2012 6:55 pm

Prerequisites checks - File Version no longer recursive?

Hello!

We are noticing a regression in the Advanced installer version 23.2 and 23.4 compared to version 17.6.
In the pre-requisites section, in the "install conditions", define a criteria of type "File Version", searching for a dll up to 2 directories deep:
[ProgramFilesFolder]dotnet/shared/Microsoft.AspNetCore.App\Microsoft.AspNetCore.dll
searching for a file version greater or equal 8.0.2100.

Test the condition by clicking the "Evaluate..." button.

In version 17.6 of Advanced installer, it finds all the occurences, and the search success.
17.6 SUCCESS
17.6 SUCCESS
2026-02-03 16_33_23.png (20.98 KiB) Viewed 5552 times
In version 23.2 and 23.4 of Advanced installer, it finds the first occurence, and the search fails.
23.4 FAIL
23.4 FAIL
2026-02-03 16_31_42.png (37.69 KiB) Viewed 5552 times
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites checks - File Version no longer recursive?

Hello,

Apologies for the quite delayed reply on this - this thread somehow slipped under my radar.

I have tried to test this on my end but was not able to reproduce the same behavior - most likely I have missed a step here.

If possible, could you please create a sample project that reproduces this and forward that to me so I can further investigate this on our end?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TheRocket
Posts: 43
Joined: Thu Jul 26, 2012 6:55 pm

Re: Prerequisites checks - File Version no longer recursive?

Hello!

I've sent a test project from scratch, in version 17.6 and a test project from scratch, in version 23.2.
In a test system, install asp.net core 6 and 8 from those links:
https://dotnet.microsoft.com/en-us/download/dotnet/8.0
https://dotnet.microsoft.com/en-us/download/dotnet/6.0

Both projects are looking for your installed version of a .net core dll and expect version 8+ to be installed.

If you have a .net core 6 and .net core 8 already installed, the project in 23.2 fail the check and asks to install the pre-requisite.
The check is supposed to succeed and as both version 6 and 8 are installed.

We can probably simplify the example further by providing ourselves a test folder with some dll's. Let me know if you need it.
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites checks - File Version no longer recursive?

Hello,

Thank you for the provided resources.

I have tested this and managed to reproduce it on my end.

This might indeed be an issue - I have created a ticket so this can be fixed in a future version of Advanced Installer.

Until then, I'm afraid I was not able to find any workaround for this issue - this is the reason I've created the ticket with a higher priority so it can be fixed rather sooner than later.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TheRocket
Posts: 43
Joined: Thu Jul 26, 2012 6:55 pm

Re: Prerequisites checks - File Version no longer recursive?

Thanks Catalin,

For us, we are still in a testing phase of 23.x versions, so we are able to wait for the fix.

We will also consider using the new function "Folder sub-folders enumeration contain version" available in new versions.
It can fit some of our needs once we migrate our projects and could be our workaround.

Thanks for your help!
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites checks - File Version no longer recursive?

Hello Patrick,
For us, we are still in a testing phase of 23.x versions, so we are able to wait for the fix.
That's awesome. We have a release scheduled for the following days, but this issue came up last second and I do not think we can include it there.

So, most likely, when a fix will be available, I will provide you a download link for the RC version that contains the fix.
We will also consider using the new function "Folder sub-folders enumeration contain version" available in new versions.
It can fit some of our needs once we migrate our projects and could be our workaround.
Thank you for sharing the workaround with us! I am sure some other users facing a similar scenario will find this useful.

Let me know if there is anything else I can help you with and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”