Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Loading your OL addin without restarting OL

Geek News

Loading your OL addin without restarting OL
Rahul Chandran 10/7/2008 5:13:02 PM
I just downloaded the goto meeting addin and that install program installs
their addin adds toolbars to OL without requiring me to restart My outlook
any clue on how this is happening
How do you get OL to load your addin post startup

Thanks
Re: Loading your OL addin without restarting OL
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 10/7/2008 5:26:32 PM
It's not good practice to ever install an Outlook addin when Outlook is
running, no matter what the installer allows. If an addin is installed and
registered then code can get a reference to the addin from the ComAddins
collection and once it has the reference it can set the Connect property to
True to force loading the addin.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Rahul Chandran" <rchandran[ at ]meetingsense.com> wrote in message
news:6E47B14B-6F94-4882-B028-4D914DFA5123[ at ]microsoft.com...
[Quoted Text]
>I just downloaded the goto meeting addin and that install program installs
> their addin adds toolbars to OL without requiring me to restart My outlook
> any clue on how this is happening
> How do you get OL to load your addin post startup
>
> Thanks

Re: Loading your OL addin without restarting OL
Rahul Chandran 10/7/2008 6:44:01 PM
Ken thanks for answering m question. I just have a quick follow up

How will the addin show up in the com-addins collection of Outlook when OL
has not loaded it yet

the goto meetings behaviour is really interesting. you have OL running . you
install the addin
and voila toolbars appear in OL without restarting OL

SO i guess I am a litte confused , youre saying my installation code should
get the com -addins collection from the OL object model and even though its
not been loaded yet , it will show up ?
then call connect

IS that correct

"Ken Slovak - [MVP - Outlook]" wrote:

[Quoted Text]
> It's not good practice to ever install an Outlook addin when Outlook is
> running, no matter what the installer allows. If an addin is installed and
> registered then code can get a reference to the addin from the ComAddins
> collection and once it has the reference it can set the Connect property to
> True to force loading the addin.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Rahul Chandran" <rchandran[ at ]meetingsense.com> wrote in message
> news:6E47B14B-6F94-4882-B028-4D914DFA5123[ at ]microsoft.com...
> >I just downloaded the goto meeting addin and that install program installs
> > their addin adds toolbars to OL without requiring me to restart My outlook
> > any clue on how this is happening
> > How do you get OL to load your addin post startup
> >
> > Thanks
>
>
Re: Loading your OL addin without restarting OL
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 10/7/2008 8:32:02 PM
I don't know exactly what that addin or installer is doing, but I can guess.
If the installer installs the addin that registers it in either HKCU or HKLM
as an Outlook addin. Then if it has something like a custom action that is
called which checks to see if an Outlook session is running and if so it
gets the COMAddins collection. That should read all registered addins in
both HKCU and HKLM. Then the action could set Connect on the addin.

As I said that's all guesswork, but it most definitely is not a best
practice to have Outlook running when an addin is being installed. If this
is something you plan to implement for an addin of yours I'd highly
recommend that you reconsider your plan.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Rahul Chandran" <rchandran[ at ]meetingsense.com> wrote in message
news:DB1509C1-2468-4D93-B7A8-06CE82117EB6[ at ]microsoft.com...
[Quoted Text]
> Ken thanks for answering m question. I just have a quick follow up
>
> How will the addin show up in the com-addins collection of Outlook when OL
> has not loaded it yet
>
> the goto meetings behaviour is really interesting. you have OL running .
> you
> install the addin
> and voila toolbars appear in OL without restarting OL
>
> SO i guess I am a litte confused , youre saying my installation code
> should
> get the com -addins collection from the OL object model and even though
> its
> not been loaded yet , it will show up ?
> then call connect
>
> IS that correct

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