18

How do I check for a full .net 4.5 install?

http://wix.sourceforge.net/manual-wix3/wixnetfxextension.htm

has a list of all properties but stops at 4.0.

The open issues list has a nice Topic "add documentation for the new properties" which helne to USE them.

Anyone knows the property Name for a full 4.5 install?

Yusubov
  • 5,815
  • 9
  • 32
  • 69
TomTom
  • 61,059
  • 10
  • 88
  • 148

1 Answers1

24

Answering myself - as documentation was updated also:

NETFRAMEWORK45

More concrete:

<PropertyRef Id="NETFRAMEWORK45"/>

<Condition Message="This application requires .NET Framework 4.5. Please install the .NET Framework then run this installer again.">
    <![CDATA[Installed OR NETFRAMEWORK45]]>
</Condition>
TomTom
  • 61,059
  • 10
  • 88
  • 148
  • 11
    I tried that, but then after more reading, realized I NEEDED to add a reference to the WixNetFxExtension.dll (C:\Program Files (x86)\WiX Toolset v3.7\bin\\WixNetFxExtension.dll ) – Tom Stickel May 28 '13 at 22:58
  • 2
    Details: "Add the -ext command line parameter when calling light.exe to include the WixNetfxExtension in the MSI linking process." – Nicolas Raoul Aug 20 '13 at 06:03