cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tcom36
Level 7

How to find where MS Office is installed?

I need to install an Excel VBA macro into the XLSTART directory of an existing MS Office 2003 or 2007 installation.

How can I find out in an InstallScript MSI project where the base install directory of MS Office is?
Labels (1)
0 Kudos
(2) Replies
mr_slava
Level 4

You need to read value from registry. This is HKLM root and you will want to get "Path" key from "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\OUTLOOK.EXE".
How you will do that doesn't matter. You may want to use VBScript in CA or InstallScript.
Hope this is what you looking for 🙂
0 Kudos
tcom36
Level 7

Thank you, that was exactly what I was looking for.

I think I will define an additional property by using the system search feature.
0 Kudos