Locate Outlook.exe

P

PaulH

Hi there,

I am writing an application which should also launch Outlook (if it has not
been launched already). My problem is to locate Outlook in the Vista registry.

So far, I am trying to use the entry
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UnreadMail]
which appearently has keys for every mail account which had been identified
by Outlook. Each of these keys contains a value [Application] with a string
like
%SystemDrive%\PROGRA~1\MICROS~1\Office12\OUTLOOK.EXE /profile XYZ
It is no problem to isolate the path from the execution parameters but there
is still the [%SystemDrive%] which is not expanded by the system.

Is there a unique method to find out from the registry what the SystemDrive
is?

Or -- is there a more intelligent method to find out if Outlook is
installed, which version it is and what the startup path is?

Thanks in advance. PaulH.
 
V

Vince Averello [MVP - Outlook]

Take a look under this key for the path(s):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\OUTLOOK.EXE
 
P

PaulH

Thank you, that was great help; much better than the solution I was just
trying:

[HKEY_LOCAL_MACHINE\Software\Classes\Outlook.Application\CLSID]
-->
[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{CLSID}\LocalServer32]

Best regards, PaulH
 

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