I am using Wix Toolset v3.10.3 and I am trying to get my MSI to check if .Net 4.6.2 is installed on the machine
According to the page here I should be able to use the following property
<PropertyRef Id="WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED"/>
and then do something like this
<Condition Message="This application requires .NET Framework 4.6.2. Please install the .NET Framework then run this installer again. If you require assistance, please contact [company name] support">
<![CDATA[Installed OR WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED]]>
</Condition>
but when I build I am getting the following error
Unresolved reference to symbol 'Property:WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED' in section 'Product:*'.
Does anyone have any ideas on this one? I can see that the .net 4.X family of propeties are different but I cant see that I am doing anything wrong?
NET 6 runtime is installed. WiX provides pre-defined properties to check this for . NET framework but nothing for .
If you are on the command line, add -ext WixUIExtension to the call to light.exe. If you have a WiX project in Visual Studio, add a reference to "WixUIExtension" by right clicking on "References" in the Solution Explorer. See the WiXUI Dialog Sets page for WIX3.
WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED
is supported in WiX v3.10.3. WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED
and WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED
are supported in WiX v3.11.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With