Re: HowTo: Unregister a DLL/Control when the File no longer Exists



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 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




.



Relevant Pages

  • Problem with performance of IDE devices
    ... index 0, dll tcpstk.dll, context 0x3f8a5c9 ... 0x801abbe8: FSREG: Mounted ROM portion of boot registry ... 0x8014abcc: FSREG: Invalid HKEY 0x00000000 ...
    (microsoft.public.windowsce.platbuilder)
  • Re: HowTo: Unregister a DLL/Control when the File no longer Exists
    ... Tony Proctor wrote: ... recorded in the registry. ... However, matching them up without the original DLL ... The main project references one of the DLLs, ...
    (microsoft.public.vb.general.discussion)
  • Re: How do I load a third party driver in Windows CE 6.0
    ... I had a look at the link to the documentation you sent a link to and I ... I would get a dll to load. ... What do I have to do in the registry to get my dll to ... then myusbdevicedriver.dll will get loaded when I attach my USB device. ...
    (microsoft.public.windowsce.embedded)
  • Re: HowTo: Unregister a DLL/Control when the File no longer Exists
    ... projects, in the correct order, and deals with this exact situation Karl ... "registry bloat" by not cleaning the registry properly over a period ... The main project references one of the DLLs, ... another DLL. ...
    (microsoft.public.vb.general.discussion)
  • Re: VX2 - My Victory!
    ... I was having problem with an unknown VX2 spyware. ... it will call a DLL. ... >> I search the registry for these two files. ... I DID NOT RESTART THE COMPUTER. ...
    (microsoft.public.security.virus)

Loading