View Full Version : detect .NET Framework 4.5.1/4.5.2
Unregistered
05-09-2014, 12:18 PM
I'd like to suggest adding options for .NET 4.5.1 and 4.5.2 into the Get System Info(.NET Status) script function. Thanks
linder
05-10-2014, 02:04 AM
Hello,
The option is already there ;) I have developed a simple quick-and-dirty demo project for you:
http://www.lindersoft.com/projects/NET45_detection.zip
Friedrich
Unregistered
05-10-2014, 07:25 AM
Are those versions numbers the most reliable way to check? This MSDN link says to check a "Release" registry key:
http://msdn.microsoft.com/en-us/library/hh925568%28v=vs.110%29.aspx
linder
05-10-2014, 12:37 PM
Hello,
The version numbers come directly from the original MS redistributables (reverse engineered). Of course, you can develop your own detection mechanism if you want (e.g. based on the DWORD value of 'Release') no problem. But the official built-in method in SB is detection via the value returned in %_SB_RETURN%.
Friedrich
linder
05-10-2014, 12:53 PM
BTW, we can add an option to the next SB maintenance build to retrieve the "Release" value, too. It's just one more call to the registry from the runtime, so very easy to add. I found another Version value (not documented on MSDN) for Windows 8.1. So perhaps supporting both values can help in this case.
I have re-uploaded the .sb8 demo project. It can detect 4.5, 4.5.1 (including on Win81 now) and 4.5.2.
http://www.lindersoft.com/projects/NET45_detection.zip
Friedrich
linder
05-12-2014, 07:26 AM
Hello,
We have added an option to retrieve the "Release" item. This will be available in the next SB maintenance build. But the result will be the same, it's just a different way to handle it.
Friedrich
Unregistered
05-12-2014, 08:14 AM
Thanks for adding the Release option!
linder
05-12-2014, 08:17 AM
You are very welcome. And thanks for your suggestion !!!
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.