1 Attachment(s)
[Tip] Register/Unregister DLLs and OCXs easily
Instead of having to do a
Code:
regsvr32 "c:\whatever\something.dll"
for each dll you need to register, it's easier to have a "Register/Unregister" option in the right click menu for DLLs.
Create a reg file, and add the following to it:
Code:
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"
Then, run the .reg file, and the next time you right click a DLL or OCX, the option to register or unregister it should be there. Note that "Register" becomes the default option in the right click menu when you run the .reg file.
I found this useful, and thought I'd share it with all of you here. :)
Re: [Tip] Register/Unregister DLLs and OCXs easily
Awesome Tip
:lol:
bindu
Quote:
Originally posted by mendhak
Instead of having to do a
Code:
regsvr32 "c:\whatever\something.dll"
for each dll you need to register, it's easier to have a "Register/Unregister" option in the right click menu for DLLs.
Create a reg file, and add the following to it:
Code:
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"
Then, run the .reg file, and the next time you right click a DLL or OCX, the option to register or unregister it should be there. Note that "Register" becomes the default option in the right click menu when you run the .reg file.
I found this useful, and thought I'd share it with all of you here. :)