[wix-users] NETFRAMEWORK45 not being set?

Slide slide.o.mix at gmail.com
Mon Jul 30 08:58:34 PDT 2018


I am new to working with Wix in many ways and I am trying to update an
installer for IronPython to check for .NET Framework 4.5.2. We are already
using the WixNetFxExtension to do some ngen on our assemblies and that is
working. What I am having an issue with is that NETFRAMEWORK45 is not being
set, so in my launch condition check for .NET Framework 4.5.2, it always
fails, even if it is installed. I have the following

<PropertyRef Id="NETFRAMEWORK45" />

Then later in my launch conditions, I have the following:

<Condition Message="[ProductName] requires .NET Framework 4.5.2 or
later."><![CDATA[Installed OR (NETFRAMEWORK45 AND
NETFRAMEWORK45>="#379893")]]></Condition>

If I do something like

<Condition Message="NETFRAMEWORK45=[NETFRAMEWORK45]">0</Condition>

NETFRAMEWORK45 is empty

I have been searching for how to fix this and haven't found anything that
works. I have attached the install log (run with /l*v).

I am using Wix 3.11.1.2318.

The full code for the installer can be seen at
https://github.com/slide/ironpython2/tree/installer_fixes/Package/msi

Thanks very much for any help!


More information about the wix-users mailing list