Dynamic Link Libraries provides helper libraries to the applications. Dynamic Link Libraries also called DLL. DLL’s provides reusable libraries, data and code which can be used by multiple applications or executables. In order to use system wide DLL’s easily we should register them. regsrv32 is a tool used to register DLL’s to the operating system.

动态链接库为应用程序提供了帮助程序库。 动态链接库也称为DLL。 DLL提供了可重用的库,数据和代码,可以由多个应用程序或可执行文件使用。 为了轻松使用系统范围的DLL,我们应该对其进行注册。 regsrv32是用于将DLL注册到操作系统的工具。

句法 (Syntax)

Syntax of regsrv32 is like below.

regsrv32语法如下。

regsrv32 OPTIONS DLL
  • OPTINONS are used provide different actions

    OPTINONS用于提供不同的动作

  • DLL is the path with the name of DLL file

    DLL是DLL文件名称的路径

使用管理员权限打开MS-DOS或Powershell(Open MS-DOS or Powershell with Administrator Privileges)

Playing with DLL’s in windows operating system requires Administrator privileges. So we will register and unregister DLL’s where we need a shell like MS-DOS or Powershell with Administrator privileges. In this example we will open MS_DOS shell with Administrator rights just clicking Run as administrator menu. The same technique can be used for Powershell too.

在Windows操作系统中播放DLL需要管理员权限。 因此,我们将在需要具有管理员特权的MS-DOS或Powershell之类的外壳的情况下注册和注销DLL。 在此示例中,我们将以管理员权限打开MS_DOS shell,只需单击Run as administrator菜单。 同样的技术也可以用于Powershell。

Open MS-DOS or Powershell with Administrator Privileges
使用管理员权限打开MS-DOS或Powershell

找到并运行Regsrv32可执行文件 (Locate and Run Regsrv32 Executable)

regsrv32 is not in path environment variables path. It is found following directories.

regsrv32不在路径环境变量path中。 在以下目录中找到它。

  • For 32 bit Windows  %systemroot%\SysWoW64\regsvr32.exe

    对于32位Windows %systemroot%\SysWoW64\regsvr32.exe

  • For 64 bit Windows %systemroot%\System32\regsvr32.exe

    对于64位Windows %systemroot%\System32\regsvr32.exe

We can access just like below for 64 bit Windows.

对于64位Windows,我们可以像下面一样访问。

> %systemroot%\SysWoW64\regsvr32.exe

注册DLL (Register DLL)

Now the main operation with regsrv32 is registering DLL. We do not need any option to specify to register a DLL. We will just provide the DLL name. In this example we register DLL named cabview.dll which resides in C:\DLL . Here we assume we have added %systemroot%\SysWoW64 in to the path variable

现在,使用regsrv32的主要操作是注册DLL。 我们不需要任何选项来指定注册DLL。 我们将只提供DLL名称。 在此示例中,我们注册了一个名为cabview.dll DLL,它位于C:\DLL 。 在这里,我们假设已将%systemroot%\SysWoW64添加到path变量中

> regsrv32 C:\DLL\cabview.dll

注销DLL (Unregister DLL)

We can unregister already registered DLL with \u option. We will unregister cabview.dll in the following example.

我们可以使用\u选项取消注册已经注册的DLL。 在下面的示例中,我们将注销cabview.dll

> regsrv32 \u C:\DLL\cabview.dll

不显示对话框 (Do Not Display Dialogue Boxes)

By default regsrv32 command outputs as dialog boxes. This may be unnecessary or distracting. We can prevent the dialog box to display with /s option. This options means silent.

默认情况下, regsrv32命令输出为对话框。 这可能是不必要的或分散注意力。 我们可以防止对话框显示带有/s选项。 此选项表示无声。

> regsrv32 /s C:\DLL\cabview.dll
.u1801edba45a639f8b9757c172949084c , .u1801edba45a639f8b9757c172949084c .postImageUrl , .u1801edba45a639f8b9757c172949084c .centered-text-area { min-height: 80px; position: relative; } .u1801edba45a639f8b9757c172949084c , .u1801edba45a639f8b9757c172949084c:hover , .u1801edba45a639f8b9757c172949084c:visited , .u1801edba45a639f8b9757c172949084c:active { border:0!important; } .u1801edba45a639f8b9757c172949084c .clearfix:after { content: ""; display: table; clear: both; } .u1801edba45a639f8b9757c172949084c { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u1801edba45a639f8b9757c172949084c:active , .u1801edba45a639f8b9757c172949084c:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u1801edba45a639f8b9757c172949084c .centered-text-area { width: 100%; position: relative; } .u1801edba45a639f8b9757c172949084c .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u1801edba45a639f8b9757c172949084c .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u1801edba45a639f8b9757c172949084c .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u1801edba45a639f8b9757c172949084c:hover .ctaButton { background-color: #E67E22!important; } .u1801edba45a639f8b9757c172949084c .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u1801edba45a639f8b9757c172949084c .u1801edba45a639f8b9757c172949084c-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u1801edba45a639f8b9757c172949084c:after { content: ""; display: block; clear: both; }

LEARN MORE  What Version Of Windows Do I Have?

.u1801edba45a639f8b9757c172949084c , .u1801edba45a639f8b9757c172949084c .postImageUrl , .u1801edba45a639f8b9757c172949084c .centered-text-area { min-height: 80px; position: relative; } .u1801edba45a639f8b9757c172949084c , .u1801edba45a639f8b9757c172949084c:hover , .u1801edba45a639f8b9757c172949084c:visited , .u1801edba45a639f8b9757c172949084c:active { border:0!important; } .u1801edba45a639f8b9757c172949084c .clearfix:after { content: ""; display: table; clear: both; } .u1801edba45a639f8b9757c172949084c { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u1801edba45a639f8b9757c172949084c:active , .u1801edba45a639f8b9757c172949084c:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u1801edba45a639f8b9757c172949084c .centered-text-area { width: 100%; position: relative; } .u1801edba45a639f8b9757c172949084c .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u1801edba45a639f8b9757c172949084c .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u1801edba45a639f8b9757c172949084c .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u1801edba45a639f8b9757c172949084c:hover .ctaButton { background-color: #E67E22!important; } .u1801edba45a639f8b9757c172949084c .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u1801edba45a639f8b9757c172949084c .u1801edba45a639f8b9757c172949084c-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u1801edba45a639f8b9757c172949084c:after { content: ""; display: block; clear: both; }

了解更多我拥有什么版本的Windows?

翻译自: https://www.poftut.com/register-and-unregister-windows-dll-files-with-regsrv32-command/

如何使用Regsrv32命令注册和注销Windows DLL文件相关推荐

  1. 在win10中注册老的的DLL文件

    如果你的win10已经不小心改了注册表,而又改不回来,我建议用iso重新安装,可以下个高点版本iso 在win10中注册老的的DLL文件,建议复制到相应的目录下,如system32或者64位库文件sy ...

  2. 如何注册全部DLL文件以及DLL简要说明

    将您下载的 "*. DLL" 文件复制到 "C:\Windows\system32\" 系统目录下然后按 "Win键+R" 或单击 &quo ...

  3. 重新注册系统所有dll文件

    当开机dll文件报错时没有什么好的解决方案的时候,就重新注册system32下的dll文件就好了. 如何一下把所有的dll文件重新注册一遍呢?其实很简单! (1)开始-运行:输入cmd,按" ...

  4. 关于手动注册dll文件遇到的一个小问题

    手动注册dll文件遇到的一个小问题里 由于安装一些系统的需要,要手动注册dll文件. 我采取的方式是以管理员身份进入命令控制台,执行 regsvr32 dll文件路径 可是一直提示我找不到dll文件( ...

  5. 注册dll文件的方法集合

    手工注册dll文件的命令   regsvr32 c:/winnt/system32/msjetoledb40.dll DLL files Register and Unregister 有的程序员经常 ...

  6. C# 代码注册Dll文件

    转自:https://www.cnblogs.com/xiesong/p/7243397.html 有时会遇到dll在系统中不存在,需要程序自己去注册所需的dll文件. 注册dll 需要用到regsv ...

  7. C# DLL文件注册问题(涉及AxInterop.WMPLib.dll等)

    近日遇到问题,给客户安装软件涉及视频等音影播放,安装软件启动过程遇到这样问题: 分析报错原因: 没有注册类别 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG ...

  8. 建立注册DLL和反注册DLL文件的快捷方式

    我们经常要注册或者反注册自己写的dll文件,加一个快捷方式会减少自己的工作量: [HKEY_CLASSES_ROOT/dllfile/shell/Unregister] "Command&q ...

  9. .OCX、.dll文件注册命令Regsvr32的使用

    1.打开文件,打开需要注册的OCX文件或dll文件, 2.然后根据需要进行OCX文件或DLL文件的注册和反注册 DLL.OCX注册方法--文件Regsvr32用法及情况介绍 使用过activex的人都 ...

最新文章

  1. Android得到控件在屏幕中的坐标
  2. Intellij IDEA + Maven——jar项目改成war项目相互转换
  3. Zookeeper面试题
  4. hdu 5785 Interesting(manacher+前缀和)
  5. php png 输出,PHP直接输出一张图片代码写法
  6. Django搭建个人博客:文章标签功能
  7. 安装uwsgi报错:error linking uWSGI解决方法
  8. 马斯克回应“逃税”:没有从特斯拉领取高薪 一直在按规定缴税
  9. Lego-美团点评接口自动化测试实践
  10. ELK在广告系统监控中的应用 及 Elasticsearch简介
  11. 台达伺服b3参数_恩阳台达B3系列伺服安装
  12. Windows基础知识整理
  13. 【SQL基础】SQLzoo练习
  14. 百度AI开放平台文字之身份证识别的实现
  15. 计算机图形学教程动画实验报告,计算机图形学画圆实验报告.doc
  16. discuz发帖流程_discuz 帖子模块用到的表及自动发帖函数
  17. MyBatis基础入门-2
  18. laravel 实现队列功能
  19. 计算机d盘可以格式化吗,能将电脑的D盘直接格式化了吗
  20. 天气预报API及城市代码[最详细]

热门文章

  1. Terminated due to memory error
  2. subzm在c语言中的作用,数学和编程到底是什么关系?
  3. 用于编辑计算机程序的语言是,编辑语言
  4. android面试总结加强再加强版
  5. 认识整机托管和虚拟主机
  6. Java图片加文字水印
  7. 【语音识别】食物声音识别(四)音频数据特征提取
  8. 教你如何用 HTML + CSS 来设计 响应式 的网站布局
  9. 我的世界租赁服务器维护怎么重新刷新,《我的世界》【PC】版大更新!租赁服购买/续租功能,自定义头像功能已开启!...
  10. 智能创意拼图,汇集精彩瞬间