Windows 10 regsvr32 命令詳解


regsvr32 用於將 .dll 文件注冊作為注冊錶命令組件。

另請參閱: reg     regEdit

基本用法     詳細用法

regsvr32 **.dll
			

基本語法

regsvr32 [/u] [/s] [/n] [/i[:cmdline]] <dllname>
			

選項參數

參數 EN 解釋 中文翻譯 備注
default Register server calling DllRegisterServer. 注冊服務器調用 DllRegisterServer。
/u Unregisters server calling DllUnregisterServer. 注銷服務器調用 DllUnregisterServer。
/s Silent; display no message boxes. 沉默的; 不顯示消息框。
/n

Do not call DllRegisterServer or DllUnregisterServer;

This option must be used with /i.

不調用 DllRegisterServer 或 DllUnregisterServer;

此選項必須與 /i 一起使用。

/i:<cmdline>

Used without /u, calls DllInstall(TRUE, [cmdline]) to install the dll, after a successful call to DllRegisterServer.

Used with /u, calls DllInstall(FALSE, [cmdline]) to uninstall the dll and DllUnregisterServer if DllInstall was successful.

在不使用 /u 的情況下,在成功調用 DllRegisterServer 後調用 DllInstall(TRUE, [cmdline]) 安裝 dll。

與 /u 一起使用,調用 DllInstall(FALSE, [cmdline]) 卸載 dll 和 DllUnregisterServer 若 DllInstall 成功。

<dllname>

The path (absolute or relative) to the DLL to call the entry points on.

This DLL is required to export the entry points that will be called depending on the selected option (DllRegisterServer, DllUnregisterServer and/or DllInstall).

調用入口點 DLL 路徑 (絕對或相對)。

要求此 DLL 根據選中選項 (DllRegisterServer、DllUnregisterServer 和/或 DllInstall) 導齣調用入口點。

/? Displays help at the command prompt. 在命令提示顯示幫助。

基本用法

功能 命令 文字解釋 示例 示例解釋
幫助 regsvr32 /? 展示幫助信息

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。