outlook addins/everyone

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
 
N

njdude

yes i did but as soon as i start outlook the addins dont lond and the
value is set back to 0 !
 
K

Ken Slovak - [MVP - Outlook]

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?
 
N

njdude

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 !!
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?

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




yes i did but as soon as i startoutlookthe addins dont lond and the
value is set back to 0 !- Hide quoted text -

- Show quoted text -
 
K

Ken Slovak - [MVP - Outlook]

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.
 
N

njdude

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.

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




Visual Studio 2005 SP1, VSTO Addin.
Im also having the same problem with Excel,Wordaddins.
If i install all reg keys in HKLM theaddinswont 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 !!- Hide quoted text -

- 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
 
K

Ken Slovak - [MVP - Outlook]

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.
 
B

BJ Herrington

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.
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top