473,405 Members | 2,187 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,405 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 1885
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.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.