AutoCAD 2024 - Faulty .NET Windows Desktop Runtime 8 detection logic

AutoCAD 2024 - Faulty .NET Windows Desktop Runtime 8 detection logic

david.svirskis
Explorer Explorer
1,095 Views
0 Replies
Message 1 of 1

AutoCAD 2024 - Faulty .NET Windows Desktop Runtime 8 detection logic

david.svirskis
Explorer
Explorer

Hi, I recently updated a machine from AutoCAD 2024.1.5 to 2024.1.6 and noticed that the .NET Windows Desktop Runtime 8.0.0 got installed despite the machine already having 8.0.10. Now I have to revisit the machine and remove the older insecure version.. 🙁 

 

I believe this stems from faulty logic in "3rdParty\x64\dotNet\80\pkg.dotnet80.xml" where it checks the Version registry key at "HKLM\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\hostfxr". There can be multiple versions of .NET Windows Desktop Runtime installed (i.e. 6.0.x and 8.0.x) and my guess is that this key gets updated by whichever version was installed or updated most recently - i.e. 'last writer wins'. If so, relying on this registry key is no good, as in my scenario 6.0.35 was installed or updated after 8.0.10, so the Version registry key read 6.0.35.

 

Microsoft provides a supported means of checking for installed .NET runtimes - https://learn.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed-versions?pivots=os-win...- I think Autodesk needs to look at adopting this approach.

 

Are there any Autodesk developers here to review this?

0 Likes
1,096 Views
0 Replies
Replies (0)