PDA

View Full Version : Right click register and unregister dll's/ocx's


clueless
07-06-2008, 08:19 PM
A very handy bit of code i found;
REGEDIT4

// This adds the ability to Right-Click on a .dll or .ocx
// and get the Register / UnRegister options.

// .DLL files
[HKEY_CLASSES_ROOT\.dll]
@="dllfile"

[HKEY_CLASSES_ROOT\dllfile]
@="App Extension"

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

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


// .OCX files
[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"

[HKEY_CLASSES_ROOT\ocxfile]
@="App Extension"

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

[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""
Save it as whatever.reg and then doubble click to enter the info into your registry. Then you can register and unregister dll's and ocx's just by right clicking on them :cool

RizlaUK
07-06-2008, 08:38 PM
lol, where did you find that :D

http://www.indigorose.com/forums/showpost.php?p=119479&postcount=2

i found that same bit of useful code when i made my OLE Manager

http://www.indigorose.com/forums/showthread.php?t=23517