Download ArticleDownload Article

This How.com.vn teaches you how to register a DLL file, which creates a path from the file to the Windows registry. Registering a DLL can fix startup issues for some programs, but most DLL files either don't support registration or are already registered. Keep in mind that you cannot register DLLs that came pre-installed on your Windows computer, as these DLLs are vital to Windows' operation and Windows updates will fix any out-of-date or malfunctioning DLLs.

Registering a DLL File Using Command Prompt

  • To register a DLL file on your Windows PC, you can use the regsvr command at the Command Prompt (CMD).
  • Open the Command Prompt as an administrator. You'll need admin rights to add the DLL to the registry.
  • Use the command regsvr32 <path/to/filename.dll> to register the DLL.
Method 1
Method 1 of 2:

Registering a Single DLL

Download Article
  1. How.com.vn English: Step 1 Understand how this method works.
    You can use a combination of the "regsvr" command and a DLL file's name to register the DLL if the DLL file supports the Register Server export command. This will create a path from the Windows registry to the DLL file, making it easier for Windows processes to find and use the DLL file.
    • You'll most commonly need to use this method to register DLLs which came with third-party programs that are supposed to interface directly with system-level resources (e.g., Command Prompt).
  2. Step 2 Know what the "entry point" error means.
    If the DLL is already registered, it doesn't support the Register Server export command, or its code doesn't allow it to be connected to the Windows registry, you'll receive an error which says, "The module [DLL name] was loaded but the entry point DllRegisterServer was not found". If you see this error message occur, the DLL cannot be registered.
    • The "entry point" error isn't so much a problem as it is a confirmation, as seeing this error means that your DLL doesn't need to be registered.
    Advertisement
  3. How.com.vn English: Step 3 Find the DLL you want to register.
    Go to the folder location of the DLL that you want to register. Once you've found the DLL file that you want to register, you can proceed.
    • If you installed a program for which you want to register a DLL, for example, you would go to the program's installation folder (e.g., "C:\Program Files\[program name]").
  4. How.com.vn English: Step 4 Open the DLL's Properties.
    Right-click the DLL file, then click Properties in the drop-down menu. A pop-up window will open.
  5. How.com.vn English: Step 5 Note the DLL's name.
    In the text box at the top of the Properties window, you'll see the DLL's full name. This is the name you'll need to enter later.
    • Since most DLLs have difficult-to-remember names, consider leaving up the Properties window when you're done here; that way, you'll be able to copy the name later.
  6. How.com.vn English: Step 6 Copy the DLL's path.
    Click and drag your cursor across the string of text to the right of the "Location" heading, then press Ctrl+C to copy the folder path to the DLL.
  7. How.com.vn English: Step 7 Open Start icon.
    Click the Windows logo in the bottom-left corner of the screen.
  8. How.com.vn English: Step 8 Search for Command Prompt.
    Type command prompt into the Start search bar. You should see the Command Prompt icon appear at the top of the window.
  9. How.com.vn English: Step 9 Open Command Prompt in administrator mode.
    To do so:
    • Right-click
      How.com.vn English: Windows cmd
      Command Prompt.
    • Click Run as administrator
    • Click Yes when prompted.
  10. How.com.vn English: Step 10 Switch to the DLL's directory.
    Type in cd and type a space, press Ctrl+V to paste in the path to the DLL file, and press Enter.
    • For example, if your DLL file is in the "SysWOW64" folder that's inside the stock "Windows" folder, your command would look like this: cd C:\Windows\SysWOW64
  11. How.com.vn English: Step 11 Enter the "regsvr" command and the DLL's name.
    Type in regsvr32 and type a space, then type in your DLL's name (complete with the ".dll" extension) and press Enter. If your DLL can be registered, doing this will result in a confirmation message.
    • For example, if the DLL's name is "usbperf.dll", your command would look like this: regsvr32 usbperf.dll
    • To copy the DLL's name at this point, re-open the folder with the DLL in it (the Properties window should pop up), then highlight the name in the text box and press Ctrl+C. You can then paste the name into Command Prompt by pressing Ctrl+V.
    • If the DLL is either already registered or unable to be registered, you'll see the "entry point" error pop up instead of a confirmation message.
  12. How.com.vn English: Step 12 Try unregistering the DLL and then re-registering it.
    If entering the "regsvr" command results in an error that isn't the "entry point" error, you may need to unregister the DLL before you can actually register it:
    • Type in regsvr32 /u name.dll and press Enter. Make sure to replace "name" with the DLL's name.
    • Type in regsvr32 name.dll and press Enter, again remembering to replace "name" with the DLL's name.
  13. Advertisement
Method 2
Method 2 of 2:

Re-Registering All DLLs

Download Article
  1. How.com.vn English: Step 1 Understand how this method works.
    By creating a list of your computer's DLL files and running the list as a BAT file, you can automatically register all of your computer's DLL files. This is optimal if you don't have a specific DLL that you want to register.
  2. How.com.vn English: Step 2 Open Start icon.
    Click the Windows logo in the bottom-left corner of the screen.
  3. How.com.vn English: Step 3 Search for Command Prompt.
    Type command prompt into the Start search bar. You should see the Command Prompt icon appear at the top of the window.
  4. How.com.vn English: Step 4 Open Command Prompt in administrator mode.
    To do so:
    • Right-click
      How.com.vn English: Windows cmd
      Command Prompt.
    • Click Run as administrator
    • Click Yes when prompted.
  5. How.com.vn English: Step 5 Switch to the Windows directory.
    Type in cd c:\Windows and press Enter. This will tell Command Prompt to execute the next command inside of the "Windows" folder.
  6. How.com.vn English: Step 6 Create a DLL list file.
    Type dir *.dll /s /b > C:\regdll.bat into Command Prompt, then press Enter. Doing so allows Command Prompt to create a file listing the location and name of every DLL in the Windows directory.
  7. How.com.vn English: Step 7 Close Command Prompt.
    Once you see the "c:\Windows>" line of text appear below the command you entered, you're free to exit Command Prompt and proceed.
  8. How.com.vn English: Step 8 Go to the list file's location.
    You can find it from within File Explorer:
    • Open File Explorer
      How.com.vn English: Windows File Explorer
      (or press Win+E).
    • Click This PC on the left side of the window.
    • Double-click your computer's OS (C:) hard drive.
    • Scroll down (if necessary) until you see a file named "regdll".
  9. How.com.vn English: Step 9 Copy the file onto your desktop.
    In order to save your changes, you'll need to place a copy of the "regdll" file on your desktop:
    • Click the file once to select it.
    • Press Ctrl+C.
    • Click the desktop.
    • Press Ctrl+V.
  10. How.com.vn English: Step 10 Open the list file in Notepad.
    Click the file on your desktop once to select it, then do the following:
    • Right-click the "regdll" file.
    • Click Edit in the drop-down menu.
  11. How.com.vn English: Step 11 Remove unnecessary DLL locations.
    While optional, completing this step will cut down significantly on the amount of time it takes to register the DLL files. You can delete any lines of text which have the following locations:[1]
    • C:\Windows\WinSXS — The bottom quarter or so of the text document will contain these lines of text.
    • C:\Windows\Temp — You'll find these near the section where the "WinSXS" lines were.
    • C:\Windows\$patchcache$ — These are harder to find. You can run a search by pressing Ctrl+F, typing in $patchcache$, and clicking Find next.
  12. Step 12 Add the "regsvr" command to each line of text.
    You can do this by using Notepad's "Find and Replace" feature:
    • Click Edit.
    • Click Replace... in the drop-down menu.
    • Type c:\ into the "Find what" text box.
    • Type Regsvr32.exe /s c:\ into the "Replace with" text box.
    • Click Replace All
    • Exit the window.
  13. How.com.vn English: Step 13 Save your changes and exit Notepad.
    Press Ctrl+S to save your changes, then click the X in the top-right corner of the Notepad window to close it. At this point, you're ready to run the "regdll.bat" file.
  14. How.com.vn English: Step 14 Run the file.
    Right-click the "regdll.bat" file, click Run as administrator, and click Yes when prompted to run it in Command Prompt. Doing so will allow Command Prompt to begin registering every available DLL; this process can take a long time to complete, so just make sure your computer is on and plugged in for the duration.
  15. How.com.vn English: Step 15 Exit Command Prompt.
    Once the process finishes running, you can close Command Prompt. Your computer's DLL files should now be registered.
  16. Advertisement

Community Q&A

Search
Add New Question
  • Question
    What do I do if the "register" button will not work?
    How.com.vn English: War_lizard
    War_lizard
    Community Answer
    Refresh the page or restart the computer.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • Unregistering a DLL is helpful if you want to delete it, as every registered DLL is considered "read-only" and thus impossible to delete without unregistering first.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • DLLs are essential for Windows to run properly. While nearly impossible to do, accidentally deleting or changing a system DLL will harm your computer.
      Advertisement

      About This Article

      How.com.vn English: Jack Lloyd
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for How.com.vn. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 2,162,155 times.
      How helpful is this?
      Co-authors: 18
      Updated: March 29, 2024
      Views: 2,162,155
      Categories: Windows
      Article SummaryX

      The easiest way to register a DLL is by updating your Windows computer to the latest version of its operating system. If you want to register DLLs manually instead, you can generate a list of all DLLs on your computer from within Command Prompt, after which point you can open the list in Notepad. After removing unnecessary entries from the list and adding commands before the DLLs you want to register, you can save the Notepad file as a Windows Batch (.bat) file and then execute it by double-clicking it. This will result in all of the selected DLL files on your computer being re-registered.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 2,162,155 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement