Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: How to check if my com add-in already installed in this computer?

Geek News

How to check if my com add-in already installed in this computer?
Yael 5/28/2007 12:03:02 PM
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");
}


Re: How to check if my com add-in already installed in this computer?
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 5/29/2007 5:53:36 PM
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[ at ]discussions.microsoft.com> wrote in message
news:E58C933E-F976-4902-AAA7-6D9369A6FFDB[ at ]microsoft.com...
[Quoted Text]
> 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");
> }
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net