Recently I’m installing a 32-bit application on a fresh installed Windows Server SBS 2008 which only comes in 64-bit version. This application that I’m installing is requiring a DLL file to be registered on the registry using the regsvr32 command.
Here comes the problem with registering 32-bit DLL since 32-bit application see different “system32” in Windows Server 64-bit. 32-bit application will see %windir%\syswow64 as their “system32” directory in 64-bit OS, while 64-bit application will use the %windir%\system32.
So to register the 32-bit DLL on 64-bit Windows Server we need to call the 32-bit version of regsvr32 which located on %windir%\syswow64, for example: