By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Remove COM Class

P: n/a
How can I "Unbuild" a COM class?

Basically, I used the "Build" command to register to COM Class. But I want
to remove/unregister it.

Thanks, Mark
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Do you mean: regsvr32 -u
To unregister the COM object from the register?
"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
How can I "Unbuild" a COM class?

Basically, I used the "Build" command to register to COM Class. But I want to remove/unregister it.

Thanks, Mark

Nov 21 '05 #2

P: n/a
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
How can I "Unbuild" a COM class?

Basically, I used the "Build" command to register to COM Class. But I
want
to remove/unregister it.

Thanks, Mark

Nov 21 '05 #3

P: n/a
It couldn't locate the dll.

I typed "regasm myCOMLib.dll /u" at the command prompt and it said it
couldn't find the dll.

Again, I compiled and registered the COM class via VB.Net, maybe I'm using
the wrong name? I don't know, this whole process is very frustrating.

Thanks, Mark

"m.posseth" wrote:
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
How can I "Unbuild" a COM class?

Basically, I used the "Build" command to register to COM Class. But I
want
to remove/unregister it.

Thanks, Mark


Nov 21 '05 #4

P: n/a
well you must include the hole path of the dll or just copy Regasm to the
assembly path

"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
It couldn't locate the dll.

I typed "regasm myCOMLib.dll /u" at the command prompt and it said it
couldn't find the dll.

Again, I compiled and registered the COM class via VB.Net, maybe I'm using
the wrong name? I don't know, this whole process is very frustrating.

Thanks, Mark

"m.posseth" wrote:
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it
will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
> How can I "Unbuild" a COM class?
>
> Basically, I used the "Build" command to register to COM Class. But I
> want
> to remove/unregister it.
>
> Thanks, Mark


Nov 21 '05 #5

P: n/a
I'll try it.

Thanks, Mark

You know I love programming, but sometimes I feel blind. You just can't
give up! For us one guy shops, these forums are the only way to work thru
issues, but they can take time!

"m.posseth" wrote:
well you must include the hole path of the dll or just copy Regasm to the
assembly path

"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
It couldn't locate the dll.

I typed "regasm myCOMLib.dll /u" at the command prompt and it said it
couldn't find the dll.

Again, I compiled and registered the COM class via VB.Net, maybe I'm using
the wrong name? I don't know, this whole process is very frustrating.

Thanks, Mark

"m.posseth" wrote:
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it
will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
> How can I "Unbuild" a COM class?
>
> Basically, I used the "Build" command to register to COM Class. But I
> want
> to remove/unregister it.
>
> Thanks, Mark


Nov 21 '05 #6

P: n/a
Okay it seems to work.

Interesting. The unregistered COM Class still shows up in the VBA
References list. When it is checked and an instance is attempted (i.e., Dim
uclass as myCOMClass
Set uclass = new myCOMClass) an error message appears saying it can't be
created. Which I assume is due to the "unregistering" of the class.

Question. How do you remove the COM Class from the References list in VBA
(Access) and more generally from the Registry (the class (defanged)
myCOMClass still shows up in the Registry under HKEY_CLASSES_ROOT,
HKEY_LOCAL_MACHINE, etc.)?

Thank you,
Mark

"m.posseth" wrote:
well you must include the hole path of the dll or just copy Regasm to the
assembly path

"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
It couldn't locate the dll.

I typed "regasm myCOMLib.dll /u" at the command prompt and it said it
couldn't find the dll.

Again, I compiled and registered the COM class via VB.Net, maybe I'm using
the wrong name? I don't know, this whole process is very frustrating.

Thanks, Mark

"m.posseth" wrote:
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it
will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
> How can I "Unbuild" a COM class?
>
> Basically, I used the "Build" command to register to COM Class. But I
> want
> to remove/unregister it.
>
> Thanks, Mark


Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.