Got this to work on my own, so I'm replying to my own question here for
archive reasons.
 
There's another registry key that actually holds the exact installation
root path.
 
This works:
 
<Property Id="EXCELDIR" >
   <RegistrySearch Id="ExcelRegistryInstallRoot2002" Type="raw"
Root="HKLM" Key="SOFTWARE\Microsoft\Office\10.0\Excel\InstallRoot"
Name="Path" />
   <RegistrySearch Id="ExcelRegistryInstallRoot2003" Type="raw"
Root="HKLM" Key="SOFTWARE\Microsoft\Office\11.0\Excel\InstallRoot"
Name="Path" />
   <RegistrySearch Id="ExcelRegistryInstallRoot2007" Type="raw"
Root="HKLM" Key="SOFTWARE\Microsoft\Office\12.0\Excel\InstallRoot"
Name="Path" />
</Property>
 
 
<Directory Id="TARGETDIR" Name="SourceDir">
      
   <Directory Id="EXCELDIR" >
      <Component Id="ExcelConfig"
Guid="{8F2608BB-E8E2-4ed9-A287-7DC370ABC084}">
         <File Id="ExcelConfig" Name="Excel.exe.config"
Source="../../Setup/Excel.exe.config" Vital="yes" Assembly="no" />
      </Component>
   </Directory>
 
...
 
<Directory/>
 
And then use that component ref in the respective feature alternatives.
 
/Mathias
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to