Home » Reference » Procedures » 

Un Register DLL

You can use the Regsvr32 tool (Regsvr32.exe) to register and unregister object linking and embedding (OLE) controls such as dynamic-link library (DLL) or ActiveX Controls (OCX) files that are self-registerable.

RegSvr32.exe has the following command-line options:

Regsvr32 [/u] [/n] [/i[:cmdline]] dllname

/u - Unregister server

/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i

When you use Regsvr32.exe, it attempts to load the component and call its DLLSelfRegister function. If this attempt is successful, Regsvr32.exe displays a dialog indicating success. If the attempt is unsuccessful, Regsvr32.exe returns an error message, which may include a Win32 error code.

How do I do it!

Example: To unregister C:\adm\core\websys\asptear.dll:

  • Click the Start button, and look for Command Prompt.
    command prompt

  • This will start the DOS Box.
    msdos


  • Enter the following command lines.  At the end of each line, press then {Enter} key:
    CD C:\adm\core\websys
    DIR
    REGSVR32 /u ASPTEAR.DLL

    If the command is correctly executed, it should look like the following screen...

    dos prompt

  • And if the DLL is correctly unregistered, you should see the following prompt!

    unreg

 


Mail this pageMail this page