Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error Message When You Run Regsvr32.exe on 64-Bit Windows


View products that this article applies to.

Symptoms

When you attempt to run Regsvr32.exe to register a 32-bit dynamic-link library (DLL) on a 64-bit version of Windows, you receive the following error message:
Filename.dll is not an executable file and no registration helper is registered for this file type.

↑ Back to the top


Cause

This behavior occurs because the Regsvr32.exe file in the System32 folder is a 64-bit version. When you run Regsvr32 to register a DLL, you are using the 64-bit version by default.

↑ Back to the top


Resolution

To resolve this issue, run Regsvr32.exe from the %SystemRoot%\Syswow64 folder. For example, type the following commands to register the DLL:
cd \windows\syswow64
regsvr32 c:\filename.dll

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


More information

The Syswow64 folder contains the 32-bit versions of Windows program files and DLLs.

↑ Back to the top


Article Info
Article ID : 282747
Revision : 5
Created on : 12/1/2007
Published on : 12/1/2007
Exists online : False
Views : 50