问题描述
Windows Installer 5添加了对Hyperlink控件的支持,如果可用,我想使用它。我不能设置对Windows Installer 5的依赖(不支持WinXP),但我希望我的安装程序能够在运行安装程序时使用Windows Installer 5时使用超链接控件。
Windows Installer 5 added support for the Hyperlink control which I would like to utilize if available. I cannot set a dependency towards Windows Installer 5 (doesn't support WinXP), but I would like my installer to be able to utilize the hyperlink control if Windows Installer 5 is available when running the installer.
你是如何做到这一点的?基于条件导入片段文件属性? 或没有' t揭示了很多样本。
How do you manage to do this? Conditional imports of fragment files based on the versionMsi property? A Google code search or regular Google search didn't reveal many samples.
推荐答案
你想读这篇文章:
摘要是你创建两个几乎完美的对话框并创建互斥的控制事件来驱动根据您的MSI版本显示一个。
The summary is you create two nearly idential dialogs and create mutually exclusive control events to drive which one gets displayed based on your MSI version.
这篇关于如何使WIX安装程序适应可用的Windows Installer版本 - 如Hyperlink控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!