Basically, I know that the following registry key contains the directory
I want and that it is consistent over Excel 2002/XP, Excel 2003 and
Excel 2007 (same GUID for all three versions).
HKCR\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer32
The value of this registry key is something like:
C:\PROGRA~1\MICROS~2\OFFICE11\EXCEL.EXE /automation
I just want the directory put into another MSI property, so I can copy
another file (Excel.exe.config) to that same directory during my WiX/MSI
installation.
Hi,
you might use a RegistrySearch for
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\excel.exe
if you only need the active excel application
<Property Id="EXCELDIR">
<RegistrySearch Id="ExcelDirSearch" Root="HKLM"
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\excel.exe" Name="Path"
Type="raw" />
</Property>
If you need others you could use "Path" value on following registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\Excel\InstallRoot
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Excel\InstallRoot
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Excel\InstallRoot
hth
Dominik
--
View this message in context:
http://n2.nabble.com/Re%3A-How-to-grab-directory-of-Excel.exe-during-installation-tp2642487p2642487.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users