我正试图通过条件检查Wix3.11的.net版本。这种方法可以工作到4.5点,如下所示:
<PropertyRef Id="NETFRAMEWORK45" />
<Condition Message="This application requires .NET Framework 4.5. Please install the .NET Framework then run this installer again.">
<![CDATA[Installed OR NETFRAMEWORK45]]>
</Condition>检查4.5以上的内容似乎是不可能的--至少在这种机制下是不可能的。我怎么能这么做?
发布于 2018-04-11 15:15:09
这种方法(PropertyRef)是句法糖。NetFxExtension预处理器在编译时注入实现。WiX目前已经落后了。您要寻找的实现如下所示:
<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):在数字461308之前添加一个#。没有那样的话,对我就不起作用了。
https://stackoverflow.com/questions/49778581
复制相似问题