Why I cannot find my registry key even my Add-in is working?

N

Nick

Hi,

I have created an outlook add-in, which follow the MS How-to,

I was able to run my add-in, but I cannot find the registry key which
assumed to be in :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins\MyAddin.Connect

where I can find the key?

Thanks!

Nick
 
K

Ken Slovak - [MVP - Outlook]

Usually, unless it's an administrative installation, the registration would
be in HKCU under those same keys. An admin installation can't be seen in the
COM Add-Ins dialog so it's usually not used unless you don't want your users
to be able to connect and disconnect your addin.
 
N

Nick

Hi Ken,

The whole story is :

1. I have created an add-in, which contains a menu item
2. Somehow, the menu item appear twice in the menu bar, the 2nd one is
not working (no response)
3. I removed the add-in, using the setup msi created by VS.net
4. only one menu remain, which is not working
5. registry is clean, so how can i remove the 2nd menu item?

thanks

Nick
 
K

Ken Slovak - [MVP - Outlook]

Find and delete a file named outcmd.dat. That has all your menu
customizations. Another method is to use an Alt+click on the menu and drag
it off of wherever it is.

Always make sure to declare any toolbar or menu you create as .Temporary =
True. And when the Explorer or Inspector is closed make sure it's deleted.
That way you won't have extra non-working items hanging around.
 
N

Nick

Hi Ken,

The problem has been solved!

The solution is to save the normal.dot after delete the menu.
( via NormalTemplate.Save() )

Since my deleteMenu() method is called in the onBeginShutdown method, in
which Word will not care anything do in this method.

But one of my concern is that if the default template is not normal.dot.
What method should I call ? Some people said CustomizationContext.Save
but I cannot find this method...

Nick
 

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