|
How can I register (install) a .dll on windows? |
|
|
|
|
Windows Registry
|
|
Written by Chetankumar Akarte
|
|
Tuesday, 10 April 2007 |
How can I register (install) a .dll on windows?
To register (install) a .dll on windows Microsoft provided a command-line tool ‘Regsvr32.exe’. Regsvr32 registers .dll files as command components in the windows registry.
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. To register dll go to start > Run
Tip..!!
You can also register a dll by creating a .bat file. Now we see example to register dll ‘RTF_to_HTM.dll’. Open Notepad.exe and put text ‘regsvr32 RTF_to_HTM.dll’ and save it.
File Name - registerDLL.bat
Save as Type – All Files
Put the bat file in folder where you dll is present and run bat to register it.
Syntax
regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname |
| Parameters |
| /u |
Unregisters server. |
| /s |
Specifies regsvr32 to run silently and to not display any message boxes. |
| /n |
Specifies not to call DllRegisterServer. You must use this option with /i. |
| /i:cmdline |
Calls DllInstall passing it an optional [cmdline]. When used with /u, it calls dll uninstall. |
| dllname |
Specifies the name of the dll file that will be registered. |
| /? |
Displays help at the command prompt. |
Example:
regsvr32 RTF_to_HTM.dll
or
regsvr32.exe RTF_to_HTM.dll
Copyright 2007. All Rights Reserved. |
|
Last Updated ( Wednesday, 11 April 2007 )
|