Results 1 to 27 of 27

Thread: [Tip] Register/Unregister DLLs and OCXs easily

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Thumbs up [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.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width