none
How do i detect whether outlook is configured or not in a system using windows registry? RRS feed

  • Question

  • Hi,

    how do i know email is configured or not when outlook is installed in our system? Using windows registry.

    Please help me in this.

    I need to check this is in my C# .net application (sending email using outlook)

    Tuesday, February 28, 2012 2:41 PM

All replies

  • The simples way is probably to check if the HKCR\Outlook.Application key is present.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!

    Wednesday, February 29, 2012 7:39 AM
  • Hi Dimitry streblechenko,

    I cannot find the specified path from registry...

    Could any one help me on this...

    Thursday, March 1, 2012 7:03 AM
  • Hi Dimitry streblechenko,

    I cannot find the specified path from registry...

    Could any one help me on this...

    Type outlookType = Type.GetTypeFromProgID("Outlook.Application", true);
    if (outlookType != null)MessageBox.Show("Outlook exists");

    I am using this code but i need to know is this working fine even if out look is not configured in a system where it was installed. 

    Thursday, March 1, 2012 7:19 AM
  • Hi Dimitry streblechenko,

    I cannot find the specified path from registry...

    Could any one help me on this...

    Type outlookType = Type.GetTypeFromProgID("Outlook.Application", true);
    if (outlookType != null)MessageBox.Show("Outlook exists");

    I am using this code but i need to know is this working fine even if out look is not configured in a system where it was installed. 

    i tested this code , it is not useful where out look is not configured. .I need the code for to figure out outlook is configured or not please help me in this.

       
    Thursday, March 1, 2012 7:43 AM
  • I found this path to check whether a outlook is configured with a email account.HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\
    Outlook 97 – 2000 in IMO use:
    HKEY_CURRENT_USER\Software\Microsoft\Windows Messaging Subsystem\Profiles\

    Please Let me know if there is some other path is available to check that outlook configuration..

    Thanks.

    Sowmiya

    Thursday, March 1, 2012 9:49 AM
  • Hi Sowmiya,

    Thanks for posting in the MSDN Forum.

    It's based on my experience that in this issue the key is "outlook configuration". I'm think the registry entry which you mentioned is a part of "outlook configuration". And HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins will set all of the add-ins' configuration of the Outlook and HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Formregions will set all of the form regions' configuration etc.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Friday, March 2, 2012 7:16 AM
    Moderator
  • Hi Tom,

    Thank you so much for your reply.

    I cannot  found the key which you mentioned here,

    HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Formregions

    Please help me in this

    Have a nice day..

    Friday, March 2, 2012 11:12 AM
  • Do you have any addins installed that use Form Regions? If none are installed the key won't exist.
     
    You also have to look under HKLM for the same keys to find addins that were installed for "all users".

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Sowmiya MCA" <=?utf-8?B?U293bWl5YSBNQ0E=?=> wrote in message news:ad3fb79e-52ec-46fc-a2ec-5978c9a73b57...

    Hi Tom,

    Thank you so much for your reply.

    I cannot  found the key which you mentioned here,

    HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Formregions

    Please help me in this

    Have a nice day..


    Ken Slovak MVP - Outlook
    Friday, March 2, 2012 2:50 PM
    Moderator