Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- From: "Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 13 Jun 2006 19:42:40 +0100
We wrote an internal RegClean type utility to deal with this 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
http://groups.google.ie/group/microsoft.public.vb.com/msg/6b5dd45f89c04a0b?hl=en&
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 containsthat
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
I know what I am doing? I realise that I can never include one of these asa
reference because I get an "Error loading DLL" message, but in time I geta
proliferation of entries in the references section to files that do notto
exist, and at best this creates clutter but at worst it means that I have
work through them until I find the right one to include. [Of course, untilI
delete the earlier version, it is still possible to include the wrongfile,
which is more serious]
TIA
Charles
.
- Follow-Ups:
- Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- From: Karl E. Peterson
- Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- References:
- HowTo: Unregister a DLL/Control when the File no longer Exists
- From: Charles Law
- HowTo: Unregister a DLL/Control when the File no longer Exists
- Prev by Date: Re: Set Current Cell of Datagrid on Form Load
- Next by Date: Re: How to create SQL Server Express server using VB?
- 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