PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins How to check if my com add-in already installed in this computer?

Reply

How to check if my com add-in already installed in this computer?

 
Thread Tools Rate Thread
Old 28-05-2007, 01:03 PM   #1
=?Utf-8?B?WWFlbA==?=
Guest
 
Posts: n/a
Default How to check if my com add-in already installed in this computer?


From C# code:

I have com add-in to outlook 2003, code in c#.
I want to check if this add-in already installed in this computer.

private void isOutlook()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\microsoft\\windows\\currentversion\\app paths\\OUTLOOK.EXE");
string path = (string)key.GetValue("Path"); if( path != null)// if have
outlook do the installing com add-in
//if this com add-in not yet installed

System.Diagnostics.Process.Start("C:\\MatarotToolbar\\MatarotToolbarSetup\\Debug\\Setup.Exe");
}


  Reply With Quote
Old 29-05-2007, 06:53 PM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: How to check if my com add-in already installed in this computer?

Check if your add-in is in SOFTWARE\Microsoft\Office\Outlook\Addins in
either HKLM or HKCU.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Yael" <Yael@discussions.microsoft.com> wrote in message
news:E58C933E-F976-4902-AAA7-6D9369A6FFDB@microsoft.com...
> From C# code:
>
> I have com add-in to outlook 2003, code in c#.
> I want to check if this add-in already installed in this computer.
>
> private void isOutlook()
> {
> Microsoft.Win32.RegistryKey key =
> Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\microsoft\\windows\\currentversion\\app
> paths\\OUTLOOK.EXE");
> string path = (string)key.GetValue("Path"); if( path != null)// if have
> outlook do the installing com add-in
> //if this com add-in not yet installed
>
> System.Diagnostics.Process.Start("C:\\MatarotToolbar\\MatarotToolbarSetup\\Debug\\Setup.Exe");
> }
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off