Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HOWTO: unregister type libraries

662 views
Skip to first unread message

Eric Olsson

unread,
Feb 8, 2001, 6:16:23 PM2/8/01
to
I'm new to writing COM+ apps, so please forgive me if this is a dumb
question. I created a type library using IDL and registered it using
RegTlib. I've since realized I need to make some changes to the
interfaces, so I'd like to unregister the type library, make the
changes, and re-register it. I haven't published this typelib, it only
exists on my development machine right now. I've searched through MSDN
library and Platform SDK, but all I can find is a passing statement that
RegTlib can be used to unregister typelibs. However, I haven't been
able to find the syntax for doing so.

Thank you in advance for any help,

Eric Olsson

yl...@my-deja.com

unread,
Feb 8, 2001, 11:51:22 PM2/8/01
to
Run RegTlib like
RegTlib /?
Look at the screen and see -u for unregistering type library
Regards
Leo Yagupolsky


Sent via Deja.com
http://www.deja.com/

Eric Olsson

unread,
Feb 12, 2001, 3:19:25 PM2/12/01
to
In article <95vt09$47o$1...@nnrp1.deja.com>, yl...@my-deja.com says...
// Run RegTlib like
// RegTlib /?
// Look at the screen and see -u for unregistering type library
// Regards
// Leo Yagupolsky
//
//
// Sent via Deja.com
// http://www.deja.com/
//

When I run RegTlib /? I get the following output:

Usage: regtlib [-q][-h] -o <odl file> | <typelib, olb, exe, or dll
filename(s)>
where: -q indicates to produce no messages
-o read an ODL file and use importlib() statements for
typelibs to register
-h<path> Directory for help file of typelib

There is no mention of a -u switch. When I try running RegTlib with a -
u switch, I get the output I copied above. Is there a newer version of
RegTlib which I could get? I have the October 2000 Platform SDK. My
copy of RegTlib.exe is located in C:\Winnt and has a file date of 5-31-
1999 11:00p and is 30,720 bytes.

Thanks in advance for your help, and sorry for the e-mail - I hit reply
instead of follow up...


Eric

Kevin Frey

unread,
Feb 12, 2001, 9:23:49 PM2/12/01
to
Ignoring RegTLib for the moment, a few important concepts:

1. Type Libraries are registered as to their location, not as to their
content. So, if you change your type library, so long as you haven't changed
its GUID and it stays in the same place (ie. directory location and
filename) there is no need to unregister it and register it again. (The same
also goes for the components themselves).

2. Type Libraries are recorded in the registry under
CLASSES_ROOT\TypeLib\<guid>. You could manually delete it by finding the
GUID of your Type Library here and then deleting it.

BTW, my RegTLib has a -u option to unregister. Get an updated copy (but I
don't know where from)..

Kevin Frey.

"Eric Olsson" <olsso...@hotmail.com> wrote in message
news:MPG.14ece4c15...@msnews.microsoft.com...

Eric Olsson

unread,
Feb 12, 2001, 8:57:58 PM2/12/01
to
Kevin -

Thank you for your reply. I was confused about the registry entries for each
interface defined in the typelib. I thought if I changed the method signatures
in the interface that it would break the association in the registry. I looked
in the Interface and Typelib keys of HKCR and saw what you were saying.

Thank you for setting me straight.

Best regards,

Eric

촘령

unread,
Feb 20, 2001, 11:44:23 PM2/20/01
to
RegSvr32 -u filename


Steffen Ramlow

unread,
Feb 22, 2001, 4:20:36 PM2/22/01
to
does not work, use regtlib -u instead

"촘령" <Meng...@163.com> wrote in message
news:96vgrj$2kp$1...@mail.cn99.com...
> RegSvr32 -u filename
>
>


0 new messages