How to check for .net framework 4.7.1 with Wix 3.11

后端 未结 1 2116
猫巷女王i
猫巷女王i 2021-02-15 14:09

I am trying to check for .net Version with Wix 3.11 via Condition. This works fine until 4.5 like this:


  

        
相关标签:
1条回答
  • 2021-02-15 14:35

    That method (PropertyRef) is syntactical sugar. The NetFxExtension preprocessor injects the implementation at compile time. WiX is currently lagging behind. The implementation you are looking for would be something like:

    <PropertyRef Id="NETFRAMEWORK45" />
    <Condition Message="This application requires .NET Framework 4.7.1. Please install the .NET Framework then run this installer again."><![CDATA[Installed OR NETFRAMEWORK45>=#461308]]>
    </Condition>
    

    https://github.com/wixtoolset/issues/issues/5575

    Update (hot33331): Added a # before the number 461308. Without that it did not work for me.

    0 讨论(0)
提交回复
热议问题