Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Tue, 13 Jun 2006 11:57:08 -0700
I wonder if an add-in could be written that automatically unregistered a
axComponent before compiling one destined to overwrite it? That's my
most-common scenario, when I'm in the very early (ie, design-by-coding)
phases of a project.
--
Working without a .NET?
http://classicvb.org/
Tony Proctor wrote:
We wrote an internal RegClean type utility to deal with thishttp://groups.google.ie/group/microsoft.public.vb.com/msg/6b5dd45f89c04a0b?hl=en&
situation since almost anyone can be guilty of deleting registered
files (e.g. QA/Installation teams as well as developers). We found it
was happening to a significant extent, plus Microsoft's RegClean
didn't always fix it, plus a third party tool had already caused
"registry bloat" by not cleaning the registry properly over a period
of time.
In principle, it's a matter of associating the Typelib records (may be
multiple versions) with their respective ClsID records, IID records,
and AppID records....and then deleting them all together. However,
matching them up without the original DLL (or EXE, or TLB) is not
foolproof. See
for instance
Tony Proctor
"Charles Law" <blank@xxxxxxxxxxx> wrote in message
news:#PHoB26iGHA.3408@xxxxxxxxxxxxxxxxxxxxxxx
I have a project group, in a specific location on disk, that contains
several projects. There is the main EXE and a few ActiveX DLLs.
The main project references one of the DLLs, which in turn references
another DLL. So far so good.
Periodically, I copy the entire directory hierarchy to another,
similar, location, and call it version 2; so the parent directory
MyProject still exists, but now there is one alongside it called
MyProject #2. I begin working on #2.
When I am happy with the changes in #2, I delete the original
directory structure altogether.
When I look in the references, I can still see the original
controls. How can I remove them without wading through the registry
in the vain hope that I know what I am doing? I realise that I can
never include one of these as a reference because I get an "Error
loading DLL" message, but in time I get a proliferation of entries
in the references section to files that do not exist, and at best
this creates clutter but at worst it means that I have to work
through them until I find the right one to include. [Of course,
until I delete the earlier version, it is still possible to include
the wrong file, which is more serious]
TIA
Charles
.
- Follow-Ups:
- References:
- HowTo: Unregister a DLL/Control when the File no longer Exists
- From: Charles Law
- Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- From: Tony Proctor
- HowTo: Unregister a DLL/Control when the File no longer Exists
- Prev by Date: Re: Determining useable area on screen w/ VB6
- Next by Date: Re: pdf converter from Microsoft??
- Previous by thread: Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- Next by thread: Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- Index(es):
Relevant Pages
|
Loading