[wix-users] WIX_IS_NETFRAMEWORK_45_OR_LATER_INSTALLED always returns false [P]

Steven Ogilvie Steven.Ogilvie at titus.com
Mon Sep 14 14:59:19 PDT 2015


Classification: Public
I use this:

In my product.wxs file:

<!-- Check for .NET 4.52 -->
    <PropertyRef Id="NETFRAMEWORK45"/>

<Condition Message="$(var.ProductName) requires Microsoft .NET Framework 4.5.2. Please install the pre-requisite, then restart the setup.">
      NETFRAMEWORK45 >= "#379893"
    </Condition>

The number #379893 is for 4.5.2 which we are looking for

Remember you have to add a reference to: to the .NET Extension in your WiX MSI project (WixNetFxExtension)

Steve

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Trevor Elliott
Sent: September-14-15 5:49 PM
To: WiX Toolset Users Mailing List
Subject: [wix-users] WIX_IS_NETFRAMEWORK_45_OR_LATER_INSTALLED always returns false

I've compiled the following code using WiX 3.10:

http://pastebin.com/F7n3h33v

I've tried on a few machines and it always returns false regardless of which version of .NET is installed.  Here's an example installer log where you can see the installer actually installs .NET 4.6 as a prerequisite, then checks the property again and it's still false:

http://pastebin.com/WFfw8jDu

Does this work for anyone else?

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

 



 
This message has been marked as Public by Steven Ogilvie on September-14-15 5:59:18 PM.

The above classification labels were added to the message by TITUS Message Classification. 
For more information visit www.titus.com.


More information about the wix-users mailing list