How to Register and Unregister a DLL File in Windows XP and Vista

Sometimes we need to register or unregister a DLL (A DLL file, aka Dynamic Link Library, are files that contain functions used across multiple applications.) file to troubleshoot a problem in Windows XP or Vista.

For example, Microsoft Office has hundreds of DLL files that can be used between the various Office programs to perform certain certain functions, such as spell checking, etc. Multiple programs can load the same DLL at the same time.

If you need to register a DLL due to some sort of corruption or installation failure, you can do it manually by following the method outlined below.

 Step 1:First click on Start, then Run and type the regsvr32 command followed by the path of the DLL file.

 

 

regsvr32 "C:\Windows\System32\Filename.dll"

7-17-2009 1-58-25 PM

Step 2: Now click OK and you should get a confirmation message that the DLL has been registered successfully.

7-17-2009 2-06-03 PM

That’s it! Now your DLL has been successfully added to the registry and can be used by Windows programs.

Note for vista users: If you are not able to register a DLL file and you end up getting an error message saying that the attempt to register the DLL file failed, you might want to disable UAC (User Account Control) in Windows Vista.

How To Unregister a DLL file

repeat the above steps except add the “/u” after the regsvr32 command

regsvr32 / u "C:\Windows\System32\Filename.dll"

Related posts:

  1. File Owner Changer Change File and Folder Ownership In Windows
  2. How To Install Windows 7 Calculator in Windows Vista
  3. How to Disable and Enable Windows Vista Hibernation
  4. Making Vista Faster a Complete How To Guide Part Three
  5. Making Vista Faster a Complete How To Guide Part One

Rate this topic:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
This item was filled under [ Tutorials & How To ]
Tagged with: [ , , , , , ]
You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

4 Comments on “How to Register and Unregister a DLL File in Windows XP and Vista”

  • 19 July, 2009, 3:15

    And if doing this in a command window, make sure you opened it with “run as administrator”.

  • 27 July, 2009, 13:08

    Hi,
    its nice to read a useful article for beginner like me.
    Some of points from this article are very helpful for me as I haven’t
    considered them yet.
    I would like to say thank you for sharing this cool article.
    Bookmarked and sharing for friends.
    - Suresh

  • 29 July, 2009, 17:44

    Thanks for this advide – it was jusr what Ineeded. Keep up the great advice. It’s really appreciated.

  • 4 August, 2009, 15:35

    Good tutorial that I needed. I was just trying to do this and some other tutorials were not so clear what to do. Thank you for sparing me time.

    I would like to thank to Efusjon too because at first I did not run command window as admin and the thing did not work. But now it did. Thank you both.