Results 1 to 3 of 3
March 10th, 2014, 10:42 AM #1Ron Guest
Error Code: 0x80004005 on regestring DLL file on W7 64 bit?
I getting 0x80004005 error on registering a dll file on W7 64 bit.
I tried from Start > Run and also from Start > CMD > and typing regsvr32 DllFileName.dll but same error.
Even tried cd c:\windows\system32 and then running regsvr32.exe DllFileName.dll
March 10th, 2014, 10:55 AM #2WeeLi Guest
This is due to fact that Regsvr32.exe file in the System32 folder is a 64-bit version. Whenever you run Regsvr32 to register a DLL, you are using the 64-bit version by default.
This issue can be resolved by running Regsvr32.exe from the %SystemRoot%\SysWOW64 folder.
For example, type the following commands to register your DLL:
Step 1 - Open cmd propmot as ADMIN.
Step 2 - Type cd \Windows\SysWOW64
Step 3 - Type regsvr32 DLLFileName.dll
You should see Succeeded message now.
Last edited by WeeLi; March 10th, 2014 at 11:22 AM.
March 10th, 2014, 11:25 AM #3HP_HP Guest
If DLL is 32 bit:- Copy the DLL to C:\Windows\SysWoW64\
In an elevated command prompt: %windir%\SysWoW64\regsvr32.exe %windir%\SysWoW64\DLLFileName.dll
if DLL is 64 bit:- Copy the DLL to C:\Windows\System32\
In an elevated command prompt: %windir%\System32\regsvr32.exe %windir%\System32\DLLFileName.dll
Ref: http://support.microsoft.com/kb/249873, says that 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.