Office WIX Discovery Extension

I am currently writing a WIX installer that has several dependencies on other installed products. It is in C # and requires the following dependencies

  • Office 2010 (including Excel / Word)
  • .NET Framework 3.5

Now for the .NET Framework, I can use WixNetFxExtension on wix to say

<PropertyRef Id="NETFRAMEWORK35_SP_LEVEL"/>

and then refers to this property in the Condition.

Is there a similar extension for this for different versions of Office or their individual files, such as Word, etc.

I know that I can use custom actions for this, but I want it to just be done, and not create my own custom actions?

+5
source share
2

WIXExtension , OfficeVersion ( "Word" ), ..

<Property Id="WORD_VERSION" Value="$(myextension.OfficeVersion(Word))" />

, , , 10.

<Condition Message="This setup requires Word xxxx and Excel xxxx or greater">
  <![CDATA[Installed OR (WORD_VERSION AND EXCEL_VERSION >= "10")]]>
</Condition>

OfficeVersion, , .

, Office

HKLM\Software\Classes\Word.Application\CurVer
HKLM\Software\Classes\Excel.Application\CurVer

.

-2

, @Ciprian, , .

<Property Id="OFFICEPATH">
  <RegistrySearch Id="OfficeReg" Root="HKLM" Key="SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot" Name="Path" Type="raw" />
</Property>

<Condition Message="This application requires Microsoft Office. Please install Office then run this installer again.">
      <![CDATA[Installed OR (OFFICEPATH)]]>
    </Condition>
+6

All Articles