Self-Registering DLLs using REGSVR32.EXE |
The REGSVR32.EXE utility that comes with the Windows operating system can be used to manually self-register or un-register an ActiveX/COM component. The command syntax for REGSVR32 is:
Regsvr32 [/u][/s][/n][/I[:cmdline]] dllname
Where:
/u – Unregister server
/s – Silent; display no message boxes
/c – Console output
/I – Call Dllinstall passing it an optional [cmslin]; when used with /u calls dll uninstall
/n – do not call DllRegisterServer; this option must be used with /I
For example, to register FREDI.DLL, type the following command:
Regsvr32 FREDI.DLL
To un-register, type the following command:
Regsvr32 –u FREDI.DLL.