>From the Wix 3.8 wix.chm documentation:

Here is a complete list of properties for the .NET Framework 4.5 and .NET 
Framework 4.5.1 product families. Note that because v4.5.1 is an in-place 
upgrade to v4.5, the same properties are used for both versions. To 
differentiate, you must check the actual property value, which contains the 
.NET Framework Release value. For more information, see .NET Framework 
Deployment Guide for Developers.

So, if you're using Wix 3.8 or later, the NETFRAMEWORK45 value will contain the 
release number.  You need to compare that against the expected release value 
for 4.5.1 (or 4.5.2).

For that, you may find this useful:  
http://msdn.microsoft.com/en-us/library/ee942965(v=vs.110).aspx 

>From this article, the release values currently are:



Version                         Value of the Release DWORD
===============================================
 .NET Framework 4.5.2           379893
 .NET Framework 4.5.1           378758
 .NET Framework 4.5             378389

All that is left to do is make a comparison in the Condition inner text 
appropriate to your needs.

--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com


-----Original Message-----
From: TimM [mailto:timmay...@smarttech.com] 
Sent: Thursday, July 10, 2014 1:49 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Install fails to detect .NET 4.5 or greater on system

I have seen many WiX articles on detecting .NET 4.5 or greater and I have 
implemented the recommended entires, but my install will FAIL to detect .NET
4.5 on machines that have .NET 4.5 and 4.5.1.

Now we are still using WiX 3.7, and therefore if the machine has .NET 4.5.1 
does the NETFRAMEWORK45 not get set properly in that version of Wix?

So here are the relevant entries:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
         xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>
        
        <Product Id="*" Name="$(var.ProductName)" Language="1033"
Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)"
                         UpgradeCode="F4472484-91DD-43E3-B998-FA5BD4099B72">
                <Package InstallerVersion="400" Compressed="yes" 
InstallScope="perMachine"
InstallPrivileges="elevated" Description="$(var.ProductName)" />

                
                <Property Id="NETFRAMEWORK45" Secure="yes" />
                <Condition Message="This setup requires Microsoft .NET 
Framework 4.5 or greater needs to be installed for this installation to 
continue.">
                        
                </Condition>

So am I missing something or since we are still on Win 3.7 we will have to add 
some manual searches for machines running .NET 4.5.1?

Thanks for any help on this issue.




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Install-fails-to-detect-NET-4-5-or-greater-on-system-tp7595756.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn 
processes into business applications with Bonita BPM Community Edition Quickly 
connect people, data, and systems into organized workflows Winner of BOSSIE, 
CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
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.


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to