How to tell if (and where) Outlook is installed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What would be the best way to programmatically determine if Outlook is
installed, and if so, where?

And scanning all available hard drives is not a good option... ;-)

Thanks,
Peter
Senior Software Developer
Green Backup, LLC
http://www/greenbackup.com
 
jpstewart said:
What would be the best way to programmatically determine if Outlook is
installed, and if so, where?

If Outlook is installed, it's path will be
%ProgramFiles%\Microsoft Office\OfficeXX\Outlook.exe
where "XX" is version-specific.
 
And from code the easiest way to see what version is installed and where is
to read the registry key
HKCR\CLSID\{0006F024-0000-0000-C000-000000000046}\LocalServer32.

That string value gives you the full path to Outlook.exe and you can parse
the string to find OFFICE11 (Outlook 2003), OFFICE10 (Outlook 2002), etc.
 
The problem here is that this would not be true if somebody didn't accept the
default location and installed it so some other directory.

Thanks,

-Peter
 
jpstewart said:
The problem here is that this would not be true if somebody didn't
accept the default location and installed it so some other directory.

Yup, and I know squat about what Ken described, so I should have just kept
my mouth shut.
 
Back
Top