Re: HowTo: Unregister a DLL/Control when the File no longer Exists
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Fri, 9 Jun 2006 06:58:21 -0500
"Charles Law" <blank@xxxxxxxxxxx> wrote in message
news:%23PHoB26iGHA.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
That whole process is soooo wrong on soooo many levels.... <g>
I highly recommend that you look into VSS and how to manage project/binary
compatibility, but for now obtain a decent Registry Cleaner utility and
periodically run it.
Also you may want to create a Context Menu tool for Explorer to make
registering and unregistering easier.
Place the following in a ".Reg" file.
REGEDIT4
[HKEY_CLASSES_ROOT\dllfile\Shell]
@="Register"
[HKEY_CLASSES_ROOT\dllfile\Shell\Register]
[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe %1"
[HKEY_CLASSES_ROOT\dllfile\Shell\Unregister]
[HKEY_CLASSES_ROOT\dllfile\Shell\Unregister\command]
@="regsvr32.exe /u %1"
[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"
[HKEY_CLASSES_ROOT\ocxfile]
@="OCX File"
"EditFlags"=hex:00,00,01,00
[HKEY_CLASSES_ROOT\ocxfile\Shell]
@="Register"
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register]
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@="regsvr32.exe %1"
[HKEY_CLASSES_ROOT\ocxfile\Shell\Unregister]
[HKEY_CLASSES_ROOT\ocxfile\Shell\Unregister\command]
@="regsvr32.exe /u %1"
Save the file, then run it. The next time you right click a DLL or OCX, the
option to register or unregister it should be there. You can combine this
with Search in Explorer to list all the Dlls and Ocxs in a particular folder
structure.
hth
-ralph
.
- Follow-Ups:
- Re: 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
- 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: Problem with SHFileOperation function
- Next by Date: Re: Problem with SHFileOperation function
- Previous by thread: 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
|