"Unable to Register Mfc40.dll" Error During MS Office Install

ID: Q163556


The information in this article applies to:


SYMPTOMS

When you run the Microsoft Office Setup program, you receive the following error message:

Unable to register Mfc40.dll


CAUSE

This error message appears because the versions of certain .dll files that exist in the Windows\System or Winnt\System32 folder are the wrong versions.


RESOLUTION

To resolve this problem, use the following procedure.

Locate and Rename Files

To find and rename the files, follow these steps:
  1. Use Microsoft Windows Explorer to locate the Mfc40.dll file.

    By default, this file is in the Windows\System folder (under Microsoft Windows 95) or in the Winnt\System32 folder (under Microsoft Windows NT 4.0).

    NOTE: If you are unable to find this file, click Options on the View Menu in Windows Explorer. Click the View tab, click Show All and click OK.

    If you cannot find the file in either of the folder locations, use the Find File feature to locate it. To do this, follow these steps:


    1. Click Start, point to Find, and then click Files Or Folders.


    2. In the Find dialog box, click the Name & Location tab.


    3. In the Named box, type the file name.

      In this case, the file name is Mfc40.dll.


    4. In the Look In box, type or select drive C.


    5. Click to select the Include Subfolders check box.


    6. Click Find Now.


    7. All copies of the file that exist on your system are listed in the lower portion of the Find dialog.


    8. Make a note of the location of all copies of the file.


  2. After you locate the Mfc40.dll file, rename it. To rename the file, right-click the file name, and click Rename on the shortcut menu. Type Mfc40.bak, and then press ENTER to rename the file. Rename all copies of the Mfc40.dll file.

    NOTE: If you receive an error message that indicates that you cannot rename the name, go to the "What to Do If the File Is in Use and Cannot Be Renamed" section.


  3. Repeat step 1 to locate and rename the Msvcrt40.dll file to Msvcrt40.bak. Rename all copies of the Msvcrt40.dll file.


  4. Run the Microsoft Office Setup program. If the Setup program runs in maintenance mode, click Reinstall. Otherwise, choose the type of installation that you want to perform.


What to Do If the File Is in Use and Cannot Be Renamed

In some cases, Windows 95 or Windows NT 4.0 may be using the Msvcrt40.dll or Mfc40.dll file. If this is the case, do the following to replace the file:
  1. Restart your computer, but press and hold the SHIFT key to disable all startup programs.


  2. Close all tasks except Systray and Explorer. To do this, press CTRL+ALT+DEL to display the Task List. In the Close Program dialog box, click the task you want to close, and then click End Task.


  3. Use the steps in the "Locate and Rename Files" section to rename the existing Msvcrt40.dll file to Msvcrt40.bak. Then rename the existing Mfc40.dll file to Mfc40.bak.


  4. When you restart your computer, you may receive an error message that indicates that Msvcrt40.dll or Mfc40.dll cannot be found. If this occurs, click OK.


  5. Run the Microsoft Office Setup program. The Microsoft Office Setup program installs both the Mfc40.dll and Msvcrt40.dll files.



MORE INFORMATION

The error message listed in the "Symptoms" section may appear when certain .dll files are not the version that the Setup program expects to find. The files may be the "wrong" version because of hardware or BIOS (basic input/output system) conflicts or Microsoft Windows 95 or Windows NT registry problems.

Some programs install different versions of the Mfc40.dll and the Msvcrt40.dll files from the versions the Microsoft Office Setup program installs. If one of the files is the wrong version, the Microsoft Office Setup program may fail to complete successfully.

Both Microsoft Office 7.0 and Microsoft Office 97 install the following versions of the Mfc40.dll and Msvcrt40.dll files:


   Mfc40.dll       Size: 924,432 bytes   Version: 4.1.6139
   Msvcrt40.dll    Size: 326,656 bytes   Version: 4.10.6038 


REFERENCES

For more information about incorrect versions of Mfc40.dll and Msvcrt40.dll, see the following article in the Microsoft Knowledge Base:

Q153733 PRB: Wrong Mfc40.dll and Msvcrt40.dll from ActiveX CD-ROM Disc
Q159685 PRB: "Unable to Register Mfc40.dll" Error Installing MS Access

Additional query words: 4.00 7.00a 7.00b 95 97 mfc40 msvcrt dll 8.00 OFF97 OFF4 OFF7


Keywords          : offwinsetup offkbproc 
Version           : WINDOWS:7.0,7.0a,7.0b,97
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: April 27, 1999