How to properly remove COM Add-Ins?

K

Krystian

Hello,

I have just completed a tutorial in building an office com add-in located
at:

How To Build an Office COM Add-in by Using Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q302896


In the article, a Step-by-Step Example is presented on how to create an
Add-in using Visual Basic. I have compiled the sample add-in and toyed with
it. Unfortunately, the tutorial left me short on one critical point: how to
properly unload / remove / delete / uncouple (which word is appropriate?)
the COM add-in.

Therefore I don't know how to remove the sample 'MyCOMAddin' addin from the
multiple applications I installed it into (Microsoft Word, Microsoft
PowerPoint, Microsoft Outlook, Microsoft Excel, Microsoft Access)


From what I've read on how to do this,

Load or unload add-in programs
http://office.microsoft.com/en-gb/assistance/HP052037321033.aspx

The Article suggests I must unload the Com Add-in from
the application itself. This suggests to me that I'd have to do this for
each application.



What is the proper way to do quickly this? The second article I cite
mentions, "If you are a developer, you can use [the unload com add-in from
the program] procedure to load or unload a COM add-in before you have
designed installation and removal programs for your add-in."


I assume there is some quick, formal way to unregister a add-in permanently
from
the system without writing a removal program?

I stripped the code and re-built the project as a quick workaround. I want
to properly unregister the com add-in before I delete the project files from
my system (in the event that just deleting the files leaves behind any
residue of the com add-in which, if this occurred, would not be found)


Thanks for reading,
Krystian.



Left for google and those who may easily find this in the future:
Synonyms: detach, disconnect, disengage, dissociate, dislodge, extract,
isolate, part, remove, separate, take away, take out, uncouple, withdraw
 
T

Thomas Möller

Hi Krystian,

Krystian said:
Unfortunately, the tutorial left me short on one
critical point: how to properly unload / remove / delete / uncouple
(which word is appropriate?) the COM add-in.

have you tried REGSVR32.EXE with the parameter /U ?

HTH
 
K

Krystian

Krystian said:
Thanks for pointing me in the right direction. =)


Actually, that didn't do it...

When I do:
regsvr32.exe /u MyCOMAddin.dll


I get the message:
LoadLibrary("MyCOMAddin.dll") failed - The specified module could not be
found.



When I load the applications referenced earlier, I still see the addin loads
and produces popups.

-Krystian.
 
T

Thomas Möller

Hi Krystian,

Krystian said:
Actually, that didn't do it...

When I do:
regsvr32.exe /u MyCOMAddin.dll


I get the message:
LoadLibrary("MyCOMAddin.dll") failed - The specified module could not
be found.

it is necessary to write the full path to the DLL.

CU
 

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