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

来源:互联网 发布:c语言中‖是什么意思 编辑:程序博客网 时间:2024/05/29 14:42
.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>
0 0
原创粉丝点击