我正在使用 Wix v3.0(它归结为 MSI 安装程序),并且我正在尝试创建一个条件来确保安装了 Excel 2003。检测计算机上是否存在 Excel 2003 的最佳(最可靠)方法是什么?
我看到了很多不同的建议,但没有明确或权威的答案。
最佳答案
我在 Office 2003 工具包中找到了一个文件 Office 2003 Keypath and Default Installation Settings workbooks包含 Office 组件的所有 GUID。基于此,我使用组件搜索来定位 Core Excel 组件。在 WiX 中我的情况如下所示:
<Property Id="EXCEL2003INSTALLED">
<!-- This is the Component Id of Global_Excel_Core -->
<ComponentSearch Id="DetectExcel2003" Guid="{A2B280D4-20FB-4720-99F7-40C09FBCE10A}" Type="file"/>
</Property>
<Condition Message="This application requires Excel 2003 to be installed."><![CDATA[Installed OR EXCEL2003INSTALLED]]></Condition>
This page具有其他 Office 应用程序和其他版本的组件指南。
关于excel - 检测是否安装了 Excel 2003 的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/650207/