How do I register a DLL file on Windows 7 64-bit?

2019-01-03 01:12发布

I have tried to use the following code:

cd c:\windows\system32
regsvr32.exe dllname.ax

But this is not working for me. How can I register a DLL file on Windows 7 with a 64-bit processor?

15条回答
我欲成王,谁敢阻挡
2楼-- · 2019-01-03 02:05

You need run the cmd.exe in c:\windows\system32\ by administrator

Commands: For unregistration *.dll files

regsvr32.exe /u C:\folder\folder\name.dll

For registration *.dll files

regsvr32.exe C:\folder\folder\name.dll
查看更多
Root(大扎)
3楼-- · 2019-01-03 02:10

If the DLL is 32 bit:

Copy the DLL to C:\Windows\SysWoW64\
In an elevated command prompt: %windir%\SysWoW64\regsvr32.exe %windir%\SysWoW64\namedll.dll

if the DLL is 64 bit:

Copy the DLL to C:\Windows\System32\
In an elevated command prompt: %windir%\System32\regsvr32.exe %windir%\System32\namedll.dll

I know it seems the wrong way round, but that's the way it works. See:

http://support.microsoft.com/kb/249873
Quote: "Note On a 64-bit version of a Windows operating system, there are two versions of the Regsv32.exe file:
The 64-bit version is %systemroot%\System32\regsvr32.exe.
The 32-bit version is %systemroot%\SysWoW64\regsvr32.exe.
"

查看更多
聊天终结者
4楼-- · 2019-01-03 02:10

There is a difference in Windows 7. Logging on as Administrator does not give the same rights as when running a program as Administrator.

Go to Start - All Programs - Accesories. Right click on the Command window and select "Run as administrator" Now register the dll normally via : regsrvr32 xxx.dll

查看更多
登录 后发表回答