OFF97: Setup Error 797 Appears When You Run Office Setup

ID: Q140900


The information in this article applies to:
  • Microsoft Office 97 for Windows
  • Microsoft Project 98 for Windows
  • Microsoft Office for Windows 95, version 7.0

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SYMPTOMS

When you run the Setup program for any of the versions of Microsoft Office listed at the beginning of this article, the following error message may appear:

Setup Error 797


CAUSE

This problem may occur when you attempt to install Microsoft Office on a computer that has a corrupted Microsoft Windows 95 swap file, Win386.swp. In addition, this problem may occur when Win386.swp is too small.

NOTE: If you run out of hard disk drive space or virtual memory is not large enough, the Windows 95 swap file will be too small.

Other Possible Causes

  • Other programs, including Terminate and Stay Resident (TSR) and anti- virus programs, may be running.


  • There may be files and registry keys from earlier versions of Microsoft Office on your computer.


  • Incompatible version of the Mfc40.dll, Msvcrt.dll, Comdlg32.dll, and/or the Msvcrt40.dll file.


  • Using a disk compression program on the hard disk.


  • Problems reading the CD-ROM.


  • The Win.ini file is read-only.


WORKAROUND

Swap File

To work around the problem when you have a corrupted swap file, restart the computer in MS-DOS mode, delete the Win386.swp file in the Windows folder, and restart the computer.

To do this, follow these steps:
  1. On the Start menu, click Shut Down.


  2. In the Shut Down Windows dialog box, click "Restart The Computer In MS-DOS Mode," and then click Yes.


  3. At the MS-DOS prompt, switch to the Windows folder by typing


  4. cd <drive>:\Windows
    where <drive> is the letter of the drive for the hard disk in which the Windows folder is located. Typically, this is drive C.

    NOTE: The swap file exists in the Windows folder if Windows manages virtual memory settings on your computer. If you chose to manage virtual memory settings on the computer, the swap file exists at the root level of the hard disk. To determine whether Windows manages virtual memory settings, right-click My Computer, click Properties, click Performance, and then click Virtual Memory.

  5. To delete the swap file, type the following at the MS-DOS prompt:


  6. del Win386.swp
  7. After deleting the swap file, restart your computer.


Running Programs

Shut down any programs that are running, including TSRs and anti-virus programs. You may need to check for TSRs in Autoexec.bat, Config.sys, Win.ini, and the Windows 95 registry.

Earlier Versions of Microsoft Office

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

If there is an earlier version of Microsoft Office on your computer, it may be necessary to remove it. To do this, follow these steps:
  1. Run Setup from the media for the earlier version of Microsoft Office.


  2. Click Remove All in maintenance mode setup.


  3. On the Start menu, click Run.


  4. Type regedit and click OK.


  5. Select the following registry subkey:
    
          HKEY_CURRENT_USER\Software\Microsoft\Microsoft Office 


  6. On the Edit menu, click Delete.


  7. On the Registry menu, click Exit.


  8. Run the Microsoft Office Upgrade Wizard (Offcln97.exe). The Upgrade Wizard is located in the ValuPack\OffClean folder of the Microsoft Office 97 CD-ROM.


  9. Click "Remove old Office components of your choice."


  10. In the Upgrade Wizard, select those Office 4.x or 95 components that you want to remove.


  11. After the Upgrade Wizard removes the selected Microsoft Office 4.x and 95 components, run Setup for Microsoft Office 97. During Setup, if the Upgrade Wizard prompts you to remove the Office 4.x and 95 components, click No.


Incompatible DLL Files

Older or incompatible versions of certain DLL files can cause this error message. Missing DLL files can also cause this error message. To replace the files, copy the following files from the Office 97 compact disc to the \Windows\System folder on your hard disk.
<x>:\Os\System\Mfc40.dll
<x>:\Office\WMS\Common\Msvcrt.dll
<x>:\Msvcrt40.dll
where <x> is the CD-ROM drive.

Using Disk Compression on the Hard Disk

If you are using a disk compression program, please see the following article in the Microsoft Knowledge Base:
Q120442 Using Hard Disk Utilities with Windows 95

Problems Reading the CD-Rom

If your CD-ROM drive cannot correctly read the compact disc, please see the following article in the Microsoft Knowledge Base:
Q245049 OFF97: Troubleshooting Installation from Compact Disc Media

Win.ini File Has Been Set to Read-Only

If the Win.ini file has been set to Read-Only, use the following steps to change it so it can be written to:
  1. On the Start menu, point to Programs and click Windows Explorer.


  2. Click on the Windows folder, and right-mouse click on Win.ini.


  3. Click Properties.


  4. In the Attributes group, uncheck the checkbox next to Read-only.


  5. Click OK.



MORE INFORMATION

If the swap file is too small, deleting the swap file does not correct the problem. You must create more free space on the hard disk, specify a larger swap file size, or create a swap file on a disk drive with more disk space, and then restart Windows.


REFERENCES

For more information about swap file settings, click the Index tab in Microsoft Windows Help, type the following text

reserving, disk space for extra memory
and then double-click the selected text to go to the "Disk Space for Extra Memory" topic.

Additional query words: off97 off95

Keywords : offwin
Version : WINDOWS:97,98; Win95:7.0
Platform : Win95 WINDOWS
Issue type : kbprb


Last Reviewed: January 26, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.