User Login

Help Community Login:

How To Use Regsvr32 To Register Or Unregister Files - (DLL - OCX - Etc)

GeekDrop's picture
The Drop!
Co-Admin. Cuz Even God Rested On The 7th DayModerator (Watching Over The Masses)Joined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainComputer Dr. (Let's clean up that messy Virus!)I use FirefoxI use Google ChromeI use Internet ExplorerI use SafariI'm Here To Help, & Have Proven It!Linux UserWindows UserI donated more than $20+ to GeekDrop!I donated to GeekDrop simply because I love it!I spend all day Photobucketing!Booga Booga BoogaI took a bite of the AppleI'm MagicThe Dr. left the stem off the apple!The JokerSomeone thinks you're a cutlet above the rest!
Relationship Status:
Joined: 01/20/2009
Posts: 379
Drops: 1136
Mood: Smart

Manually Registering and UnRegistering Files Using RegSvr32

There are times when you might go to run a program, game, whatever, and you end up just getting an error message, or your might need to manually UNregister DLL's, OCX files, or other helper files. (OCX files are essentially DLL's and work the same exact way).

Manually UnRegistering files is sometimes necessary when trying to clean up after a nasty virus or MalwareMalwarebytes Anti-virus / Anti-malware, other times you may just get an error message similar to the one in the screenshot below (Fig-1) after trying to start a program:

component one of its dependencies not correctly registered a file is missing or invalid

The message will always contain this: "Component <name> ... or one of its dependencies not correctly registered: a file is missing or invalid"

Fortunately, this is an easy fix, and we'll show you how right now.

What you'll need:

Let's start!

The first thing you'll need to do is to open a Windows Command Window. If you don't know how to do this already, we have a very simple tutorial for beginners explaining how to do it. Don't worry, there's absolutely nothing scary about it. Click here to read it.

GeekDrop Fun Fact Command Window DOS Prompt The Command Window it was formerly known as a "DOS Prompt" on older Windows Operating Systems, but "real DOS" has been removed from later versions of Windows, so now it's referred to as a "Command Window" even though it generally looks and works exactly the same.
Once you have a Command Window open, now comes the fun part. Making sure that your command window's path (the part before the ">" sign below) is showing it's "in" the same folder as the file(s) you're (un)registering, type in "regsvr32" (without the quotes) followed by a space, and then the full file name of the file to register, just like shown in Fig-2 below.

Then press the "Enter" button.

Tip: To navigate to other folders within the command window, look toward the bottom of our short tutorial here


After you've pressed the "Enter" key, if all went well ... you should see the following message (Fig-3)


Congrats! You've successfully registered a DLL (or OCX)!
Now, you may want or need to do the opposite ... that is, UNregister a DLL. No worries, it's exactly the same, with ONE small difference ... as shown below (Fig-4), you'll want to add a "/u" (which stands for "unregister") between the regsvr32 command and the file name, and then press the "Enter" key.


And just like above, if all goes well after pressing the "Enter" button, you should see this screen pop up ... (Fig-5)


You're file is now no longer registered (meaning recognized and usable) with your Windows OS. But since we're all GEEKS Nerd here on the Drop ... let's make this process a whole lot easier. You never know how often or when you'll need to do this again, so why try and remember all of those steps, or even do them at all? Smile

Just use the custom GeekDrop registry keys, written by STaRDoGG! (not even a 1kb download, downloadable at the bottom of this post).

Using our registry file, you'll get two nice menu items when right-clicking on (and ONLY on) any DLL or OCX file. If you right-click on any other file type, the two items do not show up, since they aren't needed.

The 2 added context menu items are:

  • Register DLL (or OCX)
  • UnRegister DLL (or OCX)

Clicking on the menu item will either register or unregister the highlighted file, depending on which item you clicked. How cool (and easy) is that? Big Grin

To install, simply follow these steps:

  1. Unzip the file attached to the bottom of this post to a temporary folder

  2. Double-click on the .reg file inside of it

  3. All done!

For the nervous, a .reg file is simply a text file with the proper structure and format for your Windows Registry to understand how to import the keys it contains. You're welcome to open it with a text editor, such as notepad, to view what's inside.

After double-clicking on the .reg file, you'll see the following message pop up (Fig-6):

How to manually register files

Click the "Yes" button, and you'll see the following screen ... (Fig-7)

Import Registry Keys

Showing that the keys were successfully imported into your registry.

There ya go! From now on, whenever you right-click on either a DLL file or an OCX file, you'll see the menu items as shown below (Fig-8, 9). Just click the menu item and you'll no longer need to hand type everything whenever you need to register or unregister files! As a really sweet bonus, if you highlight multiple files to register, it'll do all of them one after another! Smile

Register DLL Context Menu
Register OCX Context Menu

Be sure to join our FaceBook Fan page for other cool stuff by clicking right HERE

I Averaged: 2.5 | 2 votes

Read More ...

AttachmentSize bytes

Who's New

Redneck's picture
juanpabarri's picture
henta2002's picture
Vanillachinchilla's picture
versioniii's picture
xgensolutions's picture
OkwuteAgu's picture
CB_Latin's picture
GrimRapper's picture
glrobins's picture
hady's picture
Jessica Davis's picture
CRowmAN's picture
redd993's picture
Austeen Legitt's picture
facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop™ 2009-2020
TOS | Privacy Policy