Details see Microsoft Knowledge Base
http://support.microsoft.com/support/kb/articles/Q140/9/00.ASP?LN=EN-US&SD=gn&FR=0
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.
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 cd :\Windows
where 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 yourcomputer. 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.
4. To delete the swap file, type the following at the MS-DOS prompt: del Win386.swp
5. After deleting the swap file, restart your computer.