What is the best way to determine if Excel 2003 is installed?

I am using Wix v3.0 (which boils down to the MSI installer) and I am trying to create a condition to ensure the installation of Excel 2003. What is the best (most reliable) way to detect the presence of Excel 2003 on the machine?

I saw many different proposals, but did not give a definitive or authoritative answer.

+3
source share
4 answers

I found a file in the Office 2003 toolkit, Microsoft Office 2003 Keypath and the default settings for workbooks with default settings , which contains all the GUIDs for Office components. Based on this, I used component search to find the Core Excel component. In WiX, my state is as follows:

    <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 contains components for other Office applications and other versions.

+8
source

We check the InstallRoot registry key at:

HKLM\Software\Microsoft\Office\12.0\Excel\InstallRoot

(Replace 12.0 with the appropriate version number for your application).

, 64- 32- (. Microsoft Registry Reflection).

, -, 2000, XP, 2003, 2007 2010. 2010 , 64- 64- .

+4

, , excel.

0

Excel (Office) Windows. excel?

0

Source: https://habr.com/ru/post/1704822/


All Articles