473,216 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,216 software developers and data experts.

How does the AddIn Project register itself?

Hi,

I created an Addin Project with the Addin-Project-Wizzard in VS2005. I added
some code from a Knowledge Base How To und built the project.
It worked, and the Addin got registered with Outlook.

Now my questions are:
How an when did the registering took place?
Whre is the informations stored, to wich Application the Addin should be
bound?
How can I unregister the AddIn?

thanks in advance

Christof
Jan 31 '07 #1
6 1879
The registration is stored for that user in
HKCU\Software\Microsoft\Office\Outlook\Addins\ or for all users in HKLM.

--
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi,

I created an Addin Project with the Addin-Project-Wizzard in VS2005. I
added some code from a Knowledge Base How To und built the project.
It worked, and the Addin got registered with Outlook.

Now my questions are:
How an when did the registering took place?
Whre is the informations stored, to wich Application the Addin should be
bound?
How can I unregister the AddIn?

thanks in advance

Christof
Feb 1 '07 #2
COM add-ins must also expose the regular registry keys (common to all
creatable COM objects) in HKCR or HKCU\Software\Classes

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ken Slovak - [MVP - Outlook]" <ke*******@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
The registration is stored for that user in
HKCU\Software\Microsoft\Office\Outlook\Addins\ or for all users in HKLM.

--
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hi,

I created an Addin Project with the Addin-Project-Wizzard in VS2005. I
added some code from a Knowledge Base How To und built the project.
It worked, and the Addin got registered with Outlook.

Now my questions are:
How an when did the registering took place?
Whre is the informations stored, to wich Application the Addin should be
bound?
How can I unregister the AddIn?

thanks in advance

Christof

Feb 1 '07 #3
Hi Ken and Dimitri,

thanks for your information. But I have some additional questions:

1. When were this informations written into the registry?
2. Does my project itself know, for wich applications the AddIn should be
registered? And if yes, where is this information stored and can and be
edited (including other information I entered in the wizzard)?
3. Is there a way to undo this registration other then by deleting all this
entries manually from the registration?
"Ken Slovak - [MVP - Outlook]" <ke*******@mvps.orgschrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP04.phx.gbl...
The registration is stored for that user in
HKCU\Software\Microsoft\Office\Outlook\Addins\ or for all users in HKLM.

--
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hi,

I created an Addin Project with the Addin-Project-Wizzard in VS2005. I
added some code from a Knowledge Base How To und built the project.
It worked, and the Addin got registered with Outlook.

Now my questions are:
How an when did the registering took place?
Whre is the informations stored, to wich Application the Addin should be
bound?
How can I unregister the AddIn?

thanks in advance

Christof

Feb 1 '07 #4
The information is written to the registry when the project is installed and
your addin DLL is registered. Uninstallation should remove those same
registry entries.

I don't do all that much .NET work with addins, but the ones I do are using
mostly the VS installer. I haven't really played with using InstallShield
for that, although I plan to play with it. In VS if you right-click on the
setup project and select View, Registry you will see the addin settings
under the HKCU key for a single user setup or under HKLM for an all users
setup.

--
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:ed**************@TK2MSFTNGP06.phx.gbl...
Hi Ken and Dimitri,

thanks for your information. But I have some additional questions:

1. When were this informations written into the registry?
2. Does my project itself know, for wich applications the AddIn should be
registered? And if yes, where is this information stored and can and be
edited (including other information I entered in the wizzard)?
3. Is there a way to undo this registration other then by deleting all
this entries manually from the registration?
Feb 1 '07 #5
Hi Ken,

this is not (yet) my problem. I didn't run any setup. I simply created an
AddIn project by selecting the shared AddIn project template from VS2005 and
after running the wizzard enterd some code from the MSDN how to and build
the program. After that I started Outlook and the AddIn was running therein.
There was also a Setup-Project created, but this isn't even build until now.
I hope this setup project will do everything needed for deployment. But then
all the information must sit anywhere in the project.
The information for the COM-regitration is in the class attributes, but I
still don't know, where the information is, e.g. wich office application
host the AddIn. (I could select one or more from several in the wizzard.)

I hope someone can give me answers to that.

Regards
Christof

"Ken Slovak - [MVP - Outlook]" <ke*******@mvps.orgschrieb im Newsbeitrag
news:OG**************@TK2MSFTNGP04.phx.gbl...
The information is written to the registry when the project is installed
and your addin DLL is registered. Uninstallation should remove those same
registry entries.

I don't do all that much .NET work with addins, but the ones I do are
using mostly the VS installer. I haven't really played with using
InstallShield for that, although I plan to play with it. In VS if you
right-click on the setup project and select View, Registry you will see
the addin settings under the HKCU key for a single user setup or under
HKLM for an all users setup.

--
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:ed**************@TK2MSFTNGP06.phx.gbl...
>Hi Ken and Dimitri,

thanks for your information. But I have some additional questions:

1. When were this informations written into the registry?
2. Does my project itself know, for wich applications the AddIn should be
registered? And if yes, where is this information stored and can and be
edited (including other information I entered in the wizzard)?
3. Is there a way to undo this registration other then by deleting all
this entries manually from the registration?

Feb 1 '07 #6
Hi Christof,

I believe the visual studio project wizard creates all these registry
entries for you when you go through the wizard. I believe I read that if
you need to re-do the registry entries, you can run the setup project that
the wizard builds. I don't really use this method, but was playing with it,
and noticed this.

In my add-ins I create all these registry enties in the 'DllRegisterServer'
function, and remove them in the 'DllUnregisterServer' function. When you
install your add-in you can run 'regsvr32' and give it your DLL as an
argument. The regsvr32 will call your DllRegisterServer function, thus
making all your registry entries.

Thanks,
Mark
--
http://www.beiley.com
"Christof Nordiek" <cn@nospam.dewrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi Ken,

this is not (yet) my problem. I didn't run any setup. I simply created an
AddIn project by selecting the shared AddIn project template from VS2005
and after running the wizzard enterd some code from the MSDN how to and
build the program. After that I started Outlook and the AddIn was running
therein.
There was also a Setup-Project created, but this isn't even build until
now. I hope this setup project will do everything needed for deployment.
But then all the information must sit anywhere in the project.
The information for the COM-regitration is in the class attributes, but I
still don't know, where the information is, e.g. wich office application
host the AddIn. (I could select one or more from several in the wizzard.)

I hope someone can give me answers to that.

Regards
Christof

"Ken Slovak - [MVP - Outlook]" <ke*******@mvps.orgschrieb im Newsbeitrag
news:OG**************@TK2MSFTNGP04.phx.gbl...
>The information is written to the registry when the project is installed
and your addin DLL is registered. Uninstallation should remove those same
registry entries.

I don't do all that much .NET work with addins, but the ones I do are
using mostly the VS installer. I haven't really played with using
InstallShield for that, although I plan to play with it. In VS if you
right-click on the setup project and select View, Registry you will see
the addin settings under the HKCU key for a single user setup or under
HKLM for an all users setup.

--
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:ed**************@TK2MSFTNGP06.phx.gbl...
>>Hi Ken and Dimitri,

thanks for your information. But I have some additional questions:

1. When were this informations written into the registry?
2. Does my project itself know, for wich applications the AddIn should
be registered? And if yes, where is this information stored and can and
be edited (including other information I entered in the wizzard)?
3. Is there a way to undo this registration other then by deleting all
this entries manually from the registration?

Feb 20 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris | last post by:
Dear All Referenced from my main.mde file I have an addin which contains objects that require occasional updating. I wanted to keep updatable items in an external library so as to leave main.mde...
0
by: W. Schwenkner | last post by:
I use the NUnit VS addin intensivly in development C# projects. Now I have to write a project in managed C++ and I have problems with the NUnit addin. First, the Addin extends the context menu...
4
by: Nick Dreyer | last post by:
Is it possible to see public class variables of a COM addin in Excel 97 VBA? I have successfully created the (Visual Basic 2003 .NET) COM and referenced it in an Excel 97 VBA project. The VBA...
1
by: trdonavan | last post by:
I was working on a VB Add-In in VS 2005 Beta 1 and after installing Beta 2 the Add-In disappeared from the IDE that is invoked to debug the Add-In. In other words, in Beta 1 when I started...
0
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way...
7
by: Joseph Geretz | last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now, just a couple of days. Suddenly though, running my project in Debug launches Outlook as specified, but no breakpoints...
18
by: Frank M. Walter | last post by:
Hello, I have made an small AddIn with udf for excel 2003. I use vs2003. The point of view is the function __T() I call it in excel sheet writing =__T() I am not able to set a value to a...
1
by: tzs | last post by:
I tried to follow the tutorial in the Visio 2003 SDK which implements an COM-AddIn for Visio 2003 in VB.Net. I used the VB Express (2005) version. I could make the Template Wizard work and the MS...
1
by: Rainer Queck | last post by:
Hello NG, I moved my AddIn Project from one machine to a other. This AddIn is a AddIn for Visual Studio 2005.
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.