Chris Newby
2006-07-14 20:14:40 UTC
I developed a managed Outlook Add-in using the Visual Studio 2003 Add-In
wizard. This Add-In is deployed *without* a runtime "shim". Essentially this
add-in adds a command bar button to mail item inspector windows. When this
button is clicked, a .Net windows form is opened which contains the actual
application.
Using the installer created by the VS2003 Add-In wizard, I am able to
install this add-in on my pc as well as the pc of all my users. The add-in
appears to work fine, the button shows up and everyone is happy.
But then after what appears to be an indeterministic amount of time the
button stops showing up on Outlook's mail item inspector window.
The add-in does not appear in the disabled items list, nor does it appear
under "Options->Other->Advanced Options->COM Add-Ins". However,
investigating the client registry at this point reveals that the
LoadBehavior registry settings for the add-in has changed from its original
"3" to "2". Manually changing this registry setting back to "3" and
restarting Outlook does not work as Outlook appears to reset the
LoadBehavior back to "2" during application startup.
This occurs on my development PC as well as all of my user PCs. On my
developer PC, the only other add-ins I have installed are NewsGator and MSN
Toolbar.
LoadBehavior is definately "3" when the add-in is initially installed. In
fact, uninstalling and reinstalling the add-in temporarily "fixes" the
issue, that is, the registry setting is "3" and the add-in loads as
expected. But then its just a matter of time (a few days usually) before the
add-in vanishes again.
I suppose there's another registry setting somewhere I'm missing that is
causing Outlook to block the loading of the Add-In?
Also, why and how does Outlook decide to start blocking an add-in in this
particular fashion?
Any other suggestions?
TIA//
wizard. This Add-In is deployed *without* a runtime "shim". Essentially this
add-in adds a command bar button to mail item inspector windows. When this
button is clicked, a .Net windows form is opened which contains the actual
application.
Using the installer created by the VS2003 Add-In wizard, I am able to
install this add-in on my pc as well as the pc of all my users. The add-in
appears to work fine, the button shows up and everyone is happy.
But then after what appears to be an indeterministic amount of time the
button stops showing up on Outlook's mail item inspector window.
The add-in does not appear in the disabled items list, nor does it appear
under "Options->Other->Advanced Options->COM Add-Ins". However,
investigating the client registry at this point reveals that the
LoadBehavior registry settings for the add-in has changed from its original
"3" to "2". Manually changing this registry setting back to "3" and
restarting Outlook does not work as Outlook appears to reset the
LoadBehavior back to "2" during application startup.
This occurs on my development PC as well as all of my user PCs. On my
developer PC, the only other add-ins I have installed are NewsGator and MSN
Toolbar.
LoadBehavior is definately "3" when the add-in is initially installed. In
fact, uninstalling and reinstalling the add-in temporarily "fixes" the
issue, that is, the registry setting is "3" and the add-in loads as
expected. But then its just a matter of time (a few days usually) before the
add-in vanishes again.
I suppose there's another registry setting somewhere I'm missing that is
causing Outlook to block the loading of the Add-In?
Also, why and how does Outlook decide to start blocking an add-in in this
particular fashion?
Any other suggestions?
TIA//