Re: Com Add-in Question?

From: Kristy (kristy_at_fluidsoftware.co.nz)
Date: 07/08/04


Date: 7 Jul 2004 20:33:13 -0700

Hi Ken

I am using an IAddInDesigner in my Com Add-in, I have
InitialLoadBehaviour set to None and I use IDTExtensibility2. I also
use Outlook Redemption.

I am using InstallShield (first time :-)), I have included all my
files including the dll which in the properties (registration) is set
to 'Extract Com Information'. I have set up all the relevant HKLM
registry keys (CommandLineSafe = 0, LoadBehavior = 3, Description and
FriendlyName), and built a single image with no errors.

When I install it and I look at the Registry HKEY_Users has nothing,
HKLM is as expected but HKCU still appears (albeit Load Behavior = 0).
 I don't think that I am supposed to have any entries in HKCU so I am
doing something wrong! I hope that it is very obvious to you from the
information I've provided as I know that this should be so easy and I
am obviously not understanding properly how the designer and com
add-in are being registered.

Can you help please?

Kristy

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message news:<eX6rxpCZEHA.2972@TK2MSFTNGP12.phx.gbl>...
> Is the addin registered in HKEY_USERS? If that's the case then the settings
> are being copied to HKCU when the user logs in. Never set up an addin to
> register in both HKLM and HKCU, that can cause all sorts of problems.
>
> I use InstallShield myself, along with a standard designer in my COM addin.
> I set up the registry in HKLM if I want the addin registered there by
> creating the needed entries in the HKLM section of the InstallShield
> registry settings and that's it. I don't do anything else.
>
> The necessary entries are:
> CommandLineSafe (DWORD) 0
> Description (String) "Whatever you want"
> FriendlyName (String) "Whatever you want"
> LoadBehavior (DWORD) usually 3 in most cases
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Kristy" <kristy@fluidsoftware.co.nz> wrote in message
> news:1c6477a7.0407061440.23a5d0ae@posting.google.com...
> > Hi
> >
> > I have created a com addin for Outlook and am using a Designer
> > (actually I use 2, one for Word and one for Outlook).
> >
> > The designer registers the dll automatically to HKCU but I need to use
> > HKLM.
> >
> > I have been using Visual Studio installer (.msi) to install my
> > application and set the following registry keys in
> > HKLM\Software\Microsoft\Addins\Outlook\Addins\MyAddin.Connect
> >
> > CommandLineSafe = 0
> > LoadBehaviour = 3
> > Description = "My Addin"
> > FriendlyName = "My Addin"
> >
> > I also need to use Orca to change the Property table to ALL USERS = 2
> >
> > This works, except that the dll still registers to HKCU as well, I
> > read that this is because VB is adding my additional settings to the
> > DllRegisterServer and DllunregisterServer instead of replacing them.
> > So far I have just been manually deleting the HKCU entries but have
> > noticed that each time the server (in this case a citrix server)is
> > rebooted the HKCU entries come back and this often causes the load
> > behaviour in HKLM to change to 2, which is a disaster!
> >
> > The options I have found so far are:
> >
> > 1. Use the installation package to create the registry entries but do
> > not register the addin dll. So I changed the dll in the installer to
> > '0'(do not self register), but this didn't work (Ther were no HKCU
> > settings and HKLM was as expected but the addin didn't load), so what
> > other entries do I need to make?
> >
> > 2. Don't use a designer just set up IDTExtensibilty2 in a class module
> > and set up HKLM and other registry keys using the installer. Again,
> > unsure of all the keys required to do this?
> >
> > 3. Use regOverridePredefKey API to tell the OS to use HKLM instead of
> > HKCU. This sounds scary but if it is the best way then I'm willing to
> > give it a go... any code samples or advise would be greatly
> > appreciated :-)
> >
> > I guess I'm really after some advise from someone who is very
> > knowledgable on the best, most reliable, stable way to deal with this.
> > I am also planing on using InstallShield in the future which may have
> > more options... any suggestions?????
> >
> > Thanks
> >
> > Kris



Relevant Pages

  • Re: Com Add-in Question?
    ... Is the addin registered in HKEY_USERS? ... register in both HKLM and HKCU, that can cause all sorts of problems. ... I use InstallShield myself, along with a standard designer in my COM addin. ... I set up the registry in HKLM if I want the addin registered there by ...
    (microsoft.public.outlook.program_addins)
  • Com Add-in Question?
    ... I have created a com addin for Outlook and am using a Designer ... I have been using Visual Studio installer to install my ... This works, except that the dll still registers to HKCU as well, I ... Use the installation package to create the registry entries but do ...
    (microsoft.public.outlook.program_addins)
  • Re: wuampd.exe?
    ... der sich an mindestens 4 Stellen der Registry ... Im HKCU + HKLM. ... Diesem Rechner würde ich auch nach ...
    (microsoft.public.de.german.windowsxp.registry)
  • Re: Register add-in to HKLM automatically
    ... When I build the DLL it ... >> places the registry entries automatically into HKCU as I expect. ... >> I want is to have the registry entries go to HKLM ... chose Addin for the new project ...
    (microsoft.public.vb.com)
  • Re: Register add-in to HKLM automatically
    ... When I build the DLL it ... >> places the registry entries automatically into HKCU as I expect. ... >> I want is to have the registry entries go to HKLM ... chose Addin for the new project ...
    (microsoft.public.office.developer.com.add_ins)