
Introduction
Have you ever wanted to register DLL files from the Explorer? DLL files that export DllRegisterServer and DllUnregisterServer (as COM DLL files do) can easily be controlled from the Explorer while selected. You can register/unregister it as seen in the image above. To enable this feature, add subkeys to the registry under HKEY_CLASSES_ROOT\dllfile, as in the following:

What is regsvr32?
Regsvr32 is an executable file that gets a DLL file name as an argument and runs its DllRegisterServer function (if exists). As for uninstall, just add the '/u' argument and it calls DllUnregisterServer function (if exists).
That's all.
| You must Sign In to use this message board. |
|
| | Msgs 1 to 6 of 6 (Total in Forum: 6) (Refresh) | FirstPrevNext |
|
 |
 | Simpler  |  | Hugo Hallman | 6:32 13 Jun '03 |
|
 |
One problem with this solution is that it clutters the context meny even more.
Simplest ever solution is to put a shortcut to regsvr32 in "sendto". Done!
(I have two. reg, unreg.)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
You are not entirely right. For example, if I have to register the dll that is located in "Program Files" or "My Document" folder, your approach does not work right. The reason is these folders have spaces into their names and command line routine uses spaces as delimiter of the parameters. My correction is: For registration: regsvr32 "%1" and unregistration: regsvr32 -u "%1"
This correction will be work for any folder - I have tested it.
Regards.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Would have been cool to include Export file (.reg) as part of this article as well.
[Regsvr32.reg] REGEDIT4
[HKEY_CLASSES_ROOT\dllfile\shell]
[HKEY_CLASSES_ROOT\dllfile\shell\RegSvr32]
[HKEY_CLASSES_ROOT\dllfile\shell\RegSvr32\Command] @="C:\\Winnt\\System32\\Regsvr32.exe %1"
[HKEY_CLASSES_ROOT\dllfile\shell\UnRegSvr32]
[HKEY_CLASSES_ROOT\dllfile\shell\UnRegSvr32\Command] @="C:\\Winnt\\System32\\Regsvr32.exe /u %1"
[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies]
[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies\command] @="D:\\MICROS~2\\Common\\Tools\\DEPENDS.EXE /dde"
[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies\ddeexec] @="[open(\"%1\")]"
[ End of File ]
As my daughter would say, "... Whatever!"
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Ernest Laurentin wrote: [HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies\command] @="D:\\MICROS~2\\Common\\Tools\\DEPENDS.EXE /dde"
That won't work on all machines, except everybody installs to D:\MICROS~2\Common\Tools\  AFAIK the platform SDK setup adds the bin folder to the path environment variable, therefore a simple[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies\command] @="DEPENDS.EXE /dde" without any path should be sufficient.
Regards Thomas
Sonork id: 100.10453 Thömmi
Disclaimer: Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
You are right about that. Anyway, the first time you use Depends.exe, it will add these settings in the registry. As for RegSvr32, you are also right, you may remove it and it works fine.
As my daughter would say, "... Whatever!"
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
General
News
Question
Answer
Joke
Rant
Admin