I currently using the following markup in my WiX installer project to check if .NET Framework 4.5 or greater is installed.
<PropertyRef Id="NETFRAMEWORK45" />
<Condition Message="$(var.ProductName) requires .NET Framework 4.5 or higher.">
<![CDATA[Installed OR (NETFRAMEWORK45 >= "#393295")]]>
</Condition>
How can I check for .NET Framework 4.6.1 and above?
I'm using WiX 3.10.2.2516.
Use Registry Editor (You must have administrative credentials to run regedit.) In the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. If the Full subkey isn't present, then you don't have .NET Framework 4.5 or later installed.
Click here to view a list of browsers supported by Wix. Additionally, within most browsers you can find the version number in the Help or About section.
How about:
<PropertyRef Id="WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED" />
<Condition Message="$(var.ProductName) requires .NET Framework 4.6.1 or higher.">
<![CDATA[Installed OR WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED]]>
</Condition>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With