Register a dll in Windows
To register/install a dll with windows you just execute some simple commands using command-prompt or power-shell whatever you prefer. I prefer Command prompt and attaching the screen-shots from CMD. Anyway both goes the same way for these commands.
- Copy the dll to System32
- Open Command prompt in Admin Mode “Run as Admin”.
- Change directory to Windows\System32\
- run command regsvr32.exe yourdll.dll (this line register your dll with system)
If you have a 32-bit operating system you are done. hopefully it will register the mentioned component to your system.
The regsvr32 Error
But if you have a 64-bit system it can pop you the error saying
“The Module Failed To Load The Specified Module Could Not Be Found”
This happens because you may be trying to register a 32-bit dll within your 64-bit window’s system. So what’s now?
Solution: Register a dll (Window’s 64-bit)
- Locate folder SysWow64 nearby System32 in Windows folder.
- Copy the dll file to this folder
- Now open command prompt and try to install using same commands.
Hopefully you will not get the same error now, and dll is registered to your windows OS.
But Why All This & Who Is This SysWOW64?
This error generally occurred when you try to register 32-bit dll by copying it to System32. But when your fire the application Regsvr32.exe , it actually looks for the file in SysWow64 folder and throws the error “File Not Found!” because you are sitting on a 64-bit machine.
So once you place the file in SysWow64 it works. Cheers 🙂