注册DLL与反注册DLL文件
2008-08-31 17:52
246 查看
注册表项目
[HKEY_CLASSES_ROOT\dllfile\shell\Unregister]
"Command"="regsvr32 %1 /u"
[HKEY_CLASSES_ROOT\dllfile\shell\Register]
"Command"="regsvr32 %1"
当我们需要注册或者反注册dll时,只要在该dll文件上按下鼠标右键即可!
反注册DLL大法
UnRegister DLLs
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.
Example: To unregister Winshow's winshow.dll:
Click the Start button, and select Run
Enter this command line:
regsvr32 /u [systemroot]\winshow.dll
For example, in a Windows XP machine in which your systemroot was at c:\winnt, you would
enter:
regsvr32 /u c:\winnt\winshow.dll
你能构使用Regsvr32工具Regsvr32.exe注册和反注册目标链接和深层OLE控制器类似于自动注册的动态链接库(DLL)和ActiveX控件。
(OCX)文件。
Regsvr32命令行参数:
格式:Regsvr32 [/u] [/n] [/i[:cmdline命令行]] dllnamedll文件名
/u - Unregister server反注册服务
/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll
uninstall
/i 通过此DLL的可选参数,调用DLL安装,反安装使用/u
/n - do not call DllRegisterServer; this option must be used with /i
不调用DLL注册服务,此选项必须和/i一起使用
当你使用Regsvr32.exe,它会尝试载入DLL内组件并且调用本身的自注册功能。如果尝试成功,Regsvr32.exe显示一个成功提示框,如果尝试失败,Regsvr32.exe会返回一个错误消息,一般会包含Win32错误代码(特征码)。
例如
反注册Windows的windows.dll文件
1、点击“开始”按钮,选择“运行”
2、输入如下的命令行:
regsvr32 /u [systemroot系统目录]\winshow.dll
注:卸载DLL时,目录为此DLL文件所在完整的最后打开的目录
如:在系统目录是c:\winnt的Windows XP操作系统中,你可以输入如下命令行:
regsvr32 /u c:\winnt\winshow.dll
注意:一般来说,只有在无法删除某些注册过的DLL文件时,才使用Regsvr32.exe反注册此DLL
[HKEY_CLASSES_ROOT\dllfile\shell\Unregister]
"Command"="regsvr32 %1 /u"
[HKEY_CLASSES_ROOT\dllfile\shell\Register]
"Command"="regsvr32 %1"
当我们需要注册或者反注册dll时,只要在该dll文件上按下鼠标右键即可!
反注册DLL大法
UnRegister DLLs
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.
Example: To unregister Winshow's winshow.dll:
Click the Start button, and select Run
Enter this command line:
regsvr32 /u [systemroot]\winshow.dll
For example, in a Windows XP machine in which your systemroot was at c:\winnt, you would
enter:
regsvr32 /u c:\winnt\winshow.dll
你能构使用Regsvr32工具Regsvr32.exe注册和反注册目标链接和深层OLE控制器类似于自动注册的动态链接库(DLL)和ActiveX控件。
(OCX)文件。
Regsvr32命令行参数:
格式:Regsvr32 [/u] [/n] [/i[:cmdline命令行]] dllnamedll文件名
/u - Unregister server反注册服务
/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll
uninstall
/i 通过此DLL的可选参数,调用DLL安装,反安装使用/u
/n - do not call DllRegisterServer; this option must be used with /i
不调用DLL注册服务,此选项必须和/i一起使用
当你使用Regsvr32.exe,它会尝试载入DLL内组件并且调用本身的自注册功能。如果尝试成功,Regsvr32.exe显示一个成功提示框,如果尝试失败,Regsvr32.exe会返回一个错误消息,一般会包含Win32错误代码(特征码)。
例如
反注册Windows的windows.dll文件
1、点击“开始”按钮,选择“运行”
2、输入如下的命令行:
regsvr32 /u [systemroot系统目录]\winshow.dll
注:卸载DLL时,目录为此DLL文件所在完整的最后打开的目录
如:在系统目录是c:\winnt的Windows XP操作系统中,你可以输入如下命令行:
regsvr32 /u c:\winnt\winshow.dll
注意:一般来说,只有在无法删除某些注册过的DLL文件时,才使用Regsvr32.exe反注册此DLL
相关文章推荐
- 教你如何注册DLL或OCX文件
- 批量注册DLL文件
- 一次注册所有dll文件(解决内存不能为read等问题)
- 教你如何注册DLL或OCX文件
- 一次注册所有dll文件
- 重新注册system32目录下的所有DLL文件
- 控件注册 - 利用资源文件将dll、ocx打包进exe文件(VB版)
- 注册*.dll文件
- 现在介绍一种使用资源文件,将dll、ocx打包进exe,点击直接注册的例子:
- 如何注册DLL文件
- 如何注册dll文件收藏
- dll文件放在哪该如何注册dll文件
- Regsvr32注册DLL文件命令的使用方法详细说明
- 已加载dcrf32.dll,但没有找到DllRegisterServer输入点。无法注册这个文件
- 极其方便的 注册/反注册 dll,ocx文件的方法~~~右键直接搞定
- 用FileMenu Tools玩转系统右键菜单 软件还有其他的内置命令,这里由于篇幅原因不能全部介绍了,比如注册DLL、反注册命令,当注册表中的某个dll或ocx文件受损时,可以使用该命令进行恢
- 注册DLL文件命令
- Windows 7/8 64位系统 不能注册32位dll 文件的解决方案
- 批处理文件(bat文件)注册dll批量注册dll
- 64位系统下注册32位dll文件