Register a dll in x64

Solved
Ricro -  
axellengams Posted messages 2 Status Membre -
Hello,

I'm currently running Windows Seven x64, and recently, I wanted to register a dll in order to run a program for my G-15. I placed my file in system32 and then typed: "regsvr32 nomdeladll.dll" in the run dialog. Right after, Windows returned this error message:

The module "nomdeladll.dll" may not be compatible with the version of Windows you are running. Check that the module is compatible with a x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.

I believe this is a x32 vs. x64 conflict, but how can I resolve it?

Thank you in advance.
Configuration: Windows Firefox 3.0.11

6 réponses

fchevali
 
Prerequisites: Windows 7 64 bits, VBS script using a 32-bit DLL

You need to register the DLL normally with regsvr32 xxx.DLL
Then run the program under c:\windows\SysWOW64
That's all!
So, for a VBS:
c:\windows\SysWOW64\Cscript test.vbs
And not
c:\windows\system32\Cscript test.vbs which does not work
1
Sinistrus Posted messages 1010 Registration date   Status Membre Last intervention   17
 
Works with Win10

Paste your DLL into the SysWoW64 folder
Run the command prompt as Administrator
C:\WINDOWS\system32>%systemroot%\SysWoW64\regsvr32 C:\Windows\SysWOW64\la_dll_a_installer.dll

And that's it!
0