out to check whether outlook configured or not

  • Thread starter hemaneelagiri via OfficeKB.com
  • Start date
H

hemaneelagiri via OfficeKB.com

hi

I need to perform following two checks before sending mail through outlook
1. whether Outlook is installed on a machine
2. If installed whether it is configured or not for current user

i am trying in c# and outlook is 2003
 
K

Ken Slovak - [MVP - Outlook]

For C# code you'd need the Outlook PIA installed of course, which wouldn't
be there if Outlook isn't installed and loading a class that referenced the
Outlook object model would fire an exception at once when the class was
referenced if Outlook isn't installed.

For Outlook 2003 you can check for
HKCU\Software\Microsoft\Office\11.0\Outlook\FirstRunDialog (REG_SZ) and see
if it's False. You can also check for HKCU\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging Subsystem\Profiles and see if any
sub-keys are established for Outlook profiles.

HKCR\Outlook.Application\CurVer will tell you the version installed,
"Outlook.Application.11" for Outlook 2003, "Outlook.Application.12" for
Outlook 2007, etc. If HKCR\Outlook.Application doesn't exist Outlook isn't
installed.
 

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