Reg/Unreg dlls, ocxs etc

  • Thread starter Thread starter Simon Woods
  • Start date Start date
S

Simon Woods

Hi

[Win2K SP6]

I'm looking to get a Register/Unregister menu item when right clicking on a
dll/ocx etc in Explorer. I've implemented the following from a DevX article
http://www.devx.com/tips/Tip/19957. I get the message saying that
everything has been imported (merged) into the registry okay, but when I
right-click on a dll, I don't get the menu items I was expecting. When I
look at the registry I can't find any of these entries.

Could someone explain why it may be failing? and a work-round/correction

Thanks

Simon


Open Notepad.
1.. Paste the following code into Notepad:

REGEDIT4

[HKEY_CLASSES_ROOT\.exe]
@="exefile"

[HKEY_CLASSES_ROOT\.dll]
@="dllfile"

[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"

[HKEY_CLASSES_ROOT\.olb]
@="olbfile"

[HKEY_CLASSES_ROOT\exefile\shell\Register\command]
@="%1 /register"

[HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
@="regsvr32.exe %1"

[HKEY_CLASSES_ROOT\ocxfile\shell\Register\command]
@="regsvr32.exe %1"

[HKEY_CLASSES_ROOT\olbfile\shell\Register\command]
@="regsvr32.exe %1"

[HKEY_CLASSES_ROOT\dllfile\shell\Silent Register\command]
@="regsvr32.exe /s %1"

[HKEY_CLASSES_ROOT\ocxfile\shell\Silent Register\command]
@="regsvr32.exe /s %1"

[HKEY_CLASSES_ROOT\olbfile\shell\Silent Register\command]
@="regsvr32.exe /s %1"

[HKEY_CLASSES_ROOT\exefile\shell\UnRegister\command]
@="%1 /unregister"

[HKEY_CLASSES_ROOT\dllfile\shell\UnRegister\command]
@="regsvr32.exe /u %1"

[HKEY_CLASSES_ROOT\ocxfile\shell\UnRegister\command]
@="regsvr32.exe /u %1"

[HKEY_CLASSES_ROOT\olbfile\shell\UnRegister\command]
@="regsvr32.exe /u %1"

[HKEY_CLASSES_ROOT\dllfile\shell\Silent UnRegister\command]
@="regsvr32.exe /u /s %1"

[HKEY_CLASSES_ROOT\ocxfile\shell\Silent UnRegister\command]
@="regsvr32.exe /u /s %1"

[HKEY_CLASSES_ROOT\olbfile\shell\Silent UnRegister\command]
@="regsvr32.exe /u /s %1"
2.. Save the file as register.reg.
3.. Right click on register.reg and select Merge from the context menu.
Alternatively, you can run regedit and import the file.
After merging the script, you should be able to right click on any .exe,
..dll, .ocx, or .olb file and see a list of register and unregister options.
 
Back
Top