[wix-users] DotNet 5x detection
Mike Henseler
m.henseler at simfront.com
Fri Feb 11 09:32:00 PST 2022
Or maybe this key, but still have to parse version
HKEY_LOCAL_MACHINE\SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedhost
If 5x has been added to WiX, please update this page, thnks
https://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html
-----Original Message-----
From: Mike Henseler
Sent: February 11, 2022 12:05 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: RE: DotNet 5x detection
Currently WIX does not have a check for NETFRAMEWORK50 or does it?
Looking at the wix source code, it appears you do not actually parse the version number pulled from registry, you only use the existence of the key as detection. Correct me if I am wrong.
Example:
<Property Id="NETFRAMEWORK45" Secure="yes">
<RegistrySearch Id="NetFramework45" Root="HKLM" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Name="Release" Type="raw" />
</Property>
Currently I have written a CA to get version from this key but have to parse the version info and cannot use only the existence of this key as a positive detection.
"HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\hostfxr\Version"
Is there a better cleaner way to detect DotNet 5?
What is the plan for future WIX detection of .net 5x?
thnks
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
***** This email was sent outside of your organization *****
More information about the wix-users
mailing list