Unbuilding myCOMAddin (V. Easy!)

Posted on 2003-11-22
Last Modified: 2011-10-03

I'm totally new to .NET and I built the Microsoft MyCOMAddin from here,

After selecting "Build > Build Solution" the addin now puts a message box up whenever I open or close a Office app.

Ok, this is so easy that I'm almost embarrased asking it, but how do I 'unbuild' this app?  I can't find the answer to that anywhere, and the Microsoft docs only cover the build, not unbuild!


Question by:malramsay
  • 4
  • 2

Accepted Solution

krznpsk earned 50 total points
ID: 9804835
Remove these registry keys:


that should take care of your Office pop-up problem.

Expert Comment

ID: 9804839
additionally, to completely unregister MyCOMAddin as a COM dll, run this:

regsvr32 /u myAddIn.dll

Author Comment

ID: 9804869

Thanks for your help.

I'm still trying to understand how .NET works, as I've only created dll's in VB6.0 before.  Are you telling me that even though .NET can build and register COM dlls itself, the only way to unregister it is to do it manually in 'regedit'?  That doesn't seem very sensible (or am I off the mark here)!??

Also, I tried the regsvr32 command and it told me that the 'specified module could not be found'.  Where does .NET save these dlls? I'm unsure why this command isn't working, as surely the dll would have to be registered for the popup to continue working?
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.


Expert Comment

ID: 9804900
Not exactly... but since Office XP is based on COM, Visual Studio .NET provides that wizard for building and deploying what they call "COM interop assemblies."  MSDN article:

Actually, .NET assemblies are designed to be placed somewhere else, in what's called the Global Assembly Cache.  This is not the registry... check out gacutil.exe, available from the Visual Studo .NET command Prompt or at C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\gacutil.exe

gacutil -l will give you a list of registered .NET assemblies in the GAC.  The GAC is equivalent to how COM used the registry to register user-wide or machine-wide assemblies (as opposed to just copying the .dll's around).

You can read about the GAC here:

Expert Comment

ID: 9804901
oh, by the way, the .dll is most likely at this path on your computer:

C:\documents and settings\%USERNAME\My Documents\Visual Studio Projects\MyAddin\MyAddin\bin\MyAddin.dll


Author Comment

ID: 9804907

Thanks, I see I have a lot of reading too!

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now