Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I detect whether .NET Framework 4.6.1 or higher is installed in WiX?

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.

like image 488
dommer Avatar asked May 23 '16 21:05

dommer


People also ask

How do you check if .NET 4.6 is installed?

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.

How do I know what version of WiX I have?

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.


1 Answers

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>
like image 135
ProfNimrod Avatar answered Oct 24 '22 08:10

ProfNimrod