Admin-Ahead Community

Windows => General Windows => Topic started by: lathu_official on December 20, 2014, 03:09:57 pm

Title: How to register/Unregister a DLL File
Post by: lathu_official on December 20, 2014, 03:09:57 pm
You may register or un-register any DLL file in Windows server with the command REGSVR32

Syntax
      REGSVR32 [/U] [/S] [/N] /I:[CommandLine] DLL_Name
Key
   /u          Unregister Server.

   /s          Silent, do not display dialogue boxes.

   /i          Call DllInstall to register the DLL.
               (when used with /u, it calls dll uninstall.)

   /n          Do not call DllRegisterServer, you must use this option with /i.

 CommandLine An optional command line for DllInstall
   /c          Console output (old versions only).
Examples

Unregister (disable) XP Zip folders
REGSVR32 /u C:\Windows\System32\zipfldr.dll

Unregister (Disable) CAB file viewer:
REGSVR32 /u C:\Windows\System32\cabview.dll

Register (enable) XP Zip folders
REGSVR32 zipfldr.dll

Register (enable) CAB file viewer:
REGSVR32 cabview.dll

Before installing the DLL, remember that the DLL file should be placed within C:\Windows\System32.

Please make sure that the DLL you are installing is not affected with any virus or bad script else it may compromise your server. Installing a custom build DLL should be double checked for any bad script.