[wix-users] .NET 4.6 detection from Wix 3.10

John Cooper JoCooper at jackhenry.com
Mon Aug 31 18:44:02 PDT 2015


Looking at the source code,

1) NETFRAMEWORK45 is going to be >= 393295;

2) There is a property, WIXNETFX4RELEASEINSTALLED, that also gets set to the .NET release number.  This means WIXNETFX4RELEASEINSTALLED >= 393295 will also detect .NET 4.6;

3) There is a property, WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED that will be set to '1' if .NET 4.6 or later is present and unset otherwise;

--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Enterprise Notification Service
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 |JoCooper at jackhenry.com



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Julian.Subda at non.schneider-electric.com
Sent: Monday, August 31, 2015 8:16 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] .NET 4.6 detection from Wix 3.10

The e-mail below is from an external source.  Please do not open attachments or click links from an unknown or suspicious origin.

Hi,

Does anyone have .NET 4.6 detection from Wix 3.10 working?  I currently can only get NETFRAMEWORK45 working. 

NETFRAMEWORK46 gives me an unresolved reference.  I'm aware of Wix 4 but am specifically asking about Wix 3.10.


MyInstall.wxi

<!--works-->
<PropertyRef Id="NETFRAMEWORK45"/>
<Condition Message="The required Microsoft .NET Framework 4.5 components 
are missing on this computer. Please run .NET Framework 4.5 (Web 
Installer) from Microsoft Download Center and then run this installer 
again.">
  <![CDATA[Installed OR NETFRAMEWORK45]]>
</Condition>

<!--changing to the following doesn't work-->
<PropertyRef Id="NETFRAMEWORK46"/>
<Condition Message="The required Microsoft .NET Framework 4.6 components 
are missing on this computer. Please run .NET Framework 4.6 (Web 
Installer) from Microsoft Download Center and then run this installer 
again.">
  <![CDATA[Installed OR NETFRAMEWORK46]]>
</Condition>

Thanks!
J.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.



More information about the wix-users mailing list