Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wix Toolset Check for .Net 4.6.2

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?

like image 696
martpendle Avatar asked Oct 06 '16 12:10

martpendle


People also ask

Does WiX support .NET 6?

NET 6 runtime is installed. WiX provides pre-defined properties to check this for . NET framework but nothing for .

How do I install WixUIExtension?

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.


1 Answers

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.

like image 150
Bob Arnson Avatar answered Oct 10 '22 12:10

Bob Arnson