Use Regsvr32.exe to re-register the failing COM component. Regsvr32.exe is a program that you can use to register dynamic-link libraries (DLLs) and ActiveX controls in the registry. For example, to manually register the Sample.dll file, type the following at the command prompt:
C:\Regsvr32.exe Sample.dll
NOTE: This command line assumes that Regsvr32.exe and Sample.dll are both in the root folder of drive C.
Regsvr32.exe has the following command line switches:
- /u - Unregister server
- /s - Silent; displays no message boxes
- /c - Console output
Regsvr32.exe is contained in a self-extracting .exe file named Regsv32a.exe. This file is available for download from the Microsoft Download Center. Click the file name below to download the file:
Regsv32a.exe contains the following files:
- Regsvr32.exe - The Regsvr32.exe application.
- Regsv32a.txt - A text file containing information and instructions.