您的位置:首页 > 其它

Wix安装程序中判断是否安装的.netframwork4.5

2014-08-04 11:12 489 查看
.NET FRAMEWORK校验需要引用WixNetFxExtension.dll,该DLL的路径在C:\Program Files (x86)\WiX Toolset v3.7\bin\WixNetFxExtension.dll,具体的路径与实际的安装环境有关。如果未引用编译将会出错。

<PropertyRef Id="NETFRAMEWORK40FULL"/> <PropertyRef Id="NETFRAMEWORK45"/>

<Condition Message='This setup requires Microsoft .NET Framework 4.0 Full package or greater needs to be installed for this installation to continue.'>

<![CDATA[Installed OR NETFRAMEWORK40FULL]]>

</Condition>

<Condition Message='This setup requires Microsoft .NET Framework 4.5 package or greater needs to be installed for this installation to continue.'>

<![CDATA[Installed OR NETFRAMEWORK45]]>

</Condition>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: