我正在尝试使用WiX检测.NET的安装版本.我试过了:
<Condition Message='This setup requires the .NET Framework 3.5 or higher.'>
<![CDATA[MsiNetAssemblySupport >= "3.5.0.0"]]>
</Condition>
Run Code Online (Sandbox Code Playgroud)
但这不起作用,因为MsiNetAssemblySupport属性检查的版本fusion.dll是从.NET 3.0或3.5版本2.0中更新的.
检查系统目录中是否存在.NET库是否可行?我怎么用WiX做到这一点?或者有一些方法可以使用注册表吗?
(我意识到有一个WiX用户电子邮件列表,但这是Oughts--我不喜欢80年代的技术,我喜欢我可以轻松搜索的东西.)
si6*_*618 37
Visual Studio - > WiX项目 - >添加引用 - > WixNetFxExtension.dll然后:
<PropertyRef Id="NETFRAMEWORK35" />
<Condition Message="This setup requires the .NET Framework 3.5 to be installed.">
Installed OR NETFRAMEWORK35
</Condition>
Run Code Online (Sandbox Code Playgroud)
完整详细信息,包括扩展中可用的所有.NET版本属性.还要考虑条件消息是否应该本地化.
| 归档时间: |
|
| 查看次数: |
13696 次 |
| 最近记录: |