Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the property reference for checking for .NET Framework 4.5 in WiX?

I am using WiX Toolset 3.7, and I need to check for the installation of .NET Framework 4.5 in my installer. However, the Documentation does not seem to be updated to include 4.5 properties. There is a bug that seems to imply that such properties do exist: https://sourceforge.net/p/wix/bugs/3167/, but I could not find a reference. I tried just copying the 4.0 property and using NETFRAMEWORK45FULL but the WiX compiler failed to recognize it.

like image 297
Matt H Avatar asked Dec 18 '12 21:12

Matt H


People also ask

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.

Does WiX support .NET 6?

NET 6 runtime is installed. WiX provides pre-defined properties to check this for .

How do I know if I have WiX toolset installed?

The best way to check if you have WiX Toolset installed is by opening up the Command Prompt and trying to execute the light.exe command. You can also check in the Programs and Features section of Control Panel.


1 Answers

After looking through the WiX source code, I found the properties. The one I decided to use was simply NETFRAMEWORK45. The others can be found here: http://wix.codeplex.com/SourceControl/changeset/view/62deafa7b2a4#src/ext/NetFxExtension/wixlib/NetFx4.5.wxs

UPDATE: Moved to https://github.com/wixtoolset/wix4/blob/709560017c322dca0059d1c8849184e22b85bea7/src/ext/NetFxExtension/wixlib/NetFx4.5.wxs

like image 106
Matt H Avatar answered Oct 02 '22 23:10

Matt H