Wednesday, 6 February 2013

How to unregister and register a DLL or OCX file in Windows

If you work as an IT professional or system developer you would have encountered DLL (Dynamic Link Library) and OCX OLE Control Files files. Typically you have discovered them as a result of problems. job done

Although, these files are extremely useful providing functionality within the operating system (OS) and providing custom functions for applications, the OS can get confused at times and you will need to remove them from the mix (not deleting them) and re-apply them.

Thankfully, this is a very easy process :

1. Open up a command prompt. You can do this by going to Start menu > Run or using the keyboard shortcut of Winkey + R.

2. Type “cmd” (without the quotation marks) .

 

3. Press enter and a Windows Command Prompt will be displayed.

4. Navigate to the exact location of the DLL or OCX. A DLL has been used for this example.

5. Type “regsvr32 /u filename.dll” where “filename” is the name of the DLL that you are trying to unregister.

cmd

6. Press enter.

7. There will be a brief pause after pressing enter and then you will receive the message : “DllUnregisterServer in (File name) succeeded”

unregister dll succeeded

To register a DLL or OCX file

1. Repeat steps 1-4

2. Type regsvr32 filename.dll” where “filename” is the name of the DLL that you are trying to unregister.

3. Press enter

4. After a brief pause you will receive a success message.

No comments:

Post a Comment