
You will need to use Regsvr32 to register or unregister DLLs in the Windows Registry. Regsvr32 is a command line utility and it is located at the following location,
- The 64-bit version is \System32\regsvr32.exe.
- The 32-bit version is \SysWoW64\regsvr32.exe.
Note: Always launch the command prompt with “Run as Administrator” before you execute the command line.
Syntax
regsvr32 [/u] [/n] [/i[:cmdline]] DLL_NAME
/u - Unregister server
/i - Call DllInstall passing it an optional [cmdline]; when it is used with /u, it calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i
/s – Silent; display no message boxes
To Register DLL
Perform the following command line, depending on the DLL bit version.
- For 32 bit DLL
\SysWoW64\regsvr32.exe PATH\SysWoW64\THE-DLL.dll
- For 64 bit DLL
\System32\regsvr32.exe PATH\System32\THE-DLL.dll
To Unregister DLL
Perform the following command, depending on the DLL bit version.
- For 32 bit DLL
\SysWoW64\regsvr32.exe /u PATH\SysWoW64\THE-DLL.dll
- For 64 bit DLL
\System32\regsvr32.exe /u PATH\System32\THE-DLL.dll

