outlook addins/everyone

  • Thread starter Thread starter njdude
  • Start date Start date
N

njdude

i have created an outlook addin which has to be installed for
everyone. it installs fine for the user installing the addin. then i
noticed HKCU being used so changed it to HKLM and then installer
installs it fine for all users.. i see the addin in the outlook COM
addins. But it just does not get loaded. it stays in unloaded state.
what is the reason and how to get it to work.

Please help
 
yes i did but as soon as i start outlook the addins dont lond and the
value is set back to 0 !
 
You're going to have to supply more information. What platform are you using
to code and deploy your addin? Is it a managed code shared addin or perhaps
a VSTO addin?
 
Visual Studio 2005 SP1, VSTO Addin.
Im also having the same problem with Excel,Word addins.
If i install all reg keys in HKLM the addins wont get loaded. but as
soon as i move the 1 single entry which is Software\Microsoft\Office
\Excel\Addins\MyAddin entry to HKCU from HKLM the addin loads fine.

Help !!
 
VSTO addins do not support registration in HKLM, only in HKCU. So forget
registering in HKLM. For VSTO you also must very closely follow the
deployment walkthroughs to make sure you are checking for and/or installing
all pre-requisites and that you set the security for the addin dll to full
trust using either custom actions in the installer or CASPOL to set that
security. Again, that's covered in the deployment walkthroughs for your
version of VSTO.
 
VSTOaddinsdo not support registration in HKLM, only in HKCU. So forget
registering in HKLM. For VSTO you also must very closely follow the
deployment walkthroughs to make sure you are checking for and/or installing
all pre-requisites and that you set the security for the addin dll to full
trust using either custom actions in the installer or CASPOL to set that
security. Again, that's covered in the deployment walkthroughs for your
version of VSTO.









- Show quoted text -

does this mean that i will not be able to install the addin for all
users in shot install ?
would i be better of building a different kind of addin ? COM Addin or
something
 
If you want to us VSTO that's exactly what it means. VSTO addins can only be
registered in HKCU so you'd have to register a VSTO addin (and set security
for that user) for each user under their Windows logon so the addin gets
registered correctly in HKCU for each user.

You can use a shared addin, which can be registered in HKLM. Of course then
you must directly handle the IDTExtensibility2 events in your addin and
change your code accordingly and remove all VSTO related things in your
code. Shared addins should always be shimmed so they have their own
AppDomain, something that VSTO takes care of for you with its own built-in
shimming. So you'd have to also download and use the new Shimming Wizard to
set up a shim for your shared addin.
 
You can register VSTO plugins under HKLM. Just remove the "Manifest" value
from the add-in entry. This will cause the VSTO AddinLoader to load the
assembly instead of Office directly.
 
Are you positive about that? I was told by a member of the Outlook team that
an Outlook VSTO addin would not load at all from HKLM no matter what you do.
This was related to VSTO 2005 SE.
 
Back
Top