How to tell if (and where) Outlook is installed

J

jpstewart

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
 
B

Brian Tillman

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 
J

jpstewart

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
 
B

Brian Tillman

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top