FIX: Visual C++ Setup Messages for File Copying Errors (113063)
The information in this article applies to:
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 1.5
This article was previously published under Q113063 SYMPTOMS
Installing Visual C++ may cause the Setup program to display the following
in a message box:
Internal Error
This happens when the Setup program tries to copy files from the Visual C++
CD-ROM to a hard drive, and those files are hidden or read-only.
In later versions of Visual C++ you are more likely to receive a dialog
box containing one of the messages below. You should only encounter the
'Internal Error' message if the destination file is corrupted.
For the 32-bit edition of Visual C++ version 2.0 and later:
Setup cannot open the file C:\msvc20\somefile.exe. The file may be in
use by another application, or marked read-only. Close the application
or change the file's read-only attribute and try again.
For the 16-bit version of Visual C++ for Windows, version 1.51 or later:
Setup cannot open the destination file C:\msvc\somefile.exe.
The dialog boxes have three options, Abort, Retry and Ignore.
- Abort will terminate the setup program.
- Retry will try to copy the file again.
- Ignore will cause the setup program to move on and try to copy the next
file to the hard disk.
CAUSE
The Visual C++ Setup program copies the majority of files to its own
directory (by default, C:\MSVC). It also copies some of the files to the
Windows directory and its subdirectories. Any hidden, read-only, or
corrupted files with the same names in these directories may cause the
Setup program to fail. These files have been installed by the previous
installations of the Visual C++ or by other software packages. The Visual
C++ Setup program can return the "Internal Error" message when its
attempt to overwrite a corrupted, hidden, read-only or share-locked file
fails.
RESOLUTION
When the "Internal Error" message occurs, the VC++ Setup program displays a
filename associated with its source directory and target directory in the
VC++ Setup dialog box. In the case of a hidden or read-only file in the
target directory, the Setup program displays the name of the file that
causes the problem. To resolve the problem of a hidden or read-only file,
follow the procedure below: - Terminate the Setup program.
- Open an MS-DOS prompt under Windows.
- Change to the directory that was displayed on the target line in the
VC++ Setup dialog box.
- Examine the attributes of the file that the Visual C++ Setup program
failed to install using the ATTRIB command in MS-DOS. For example, to
examine the attributes of TEST.DLL, type the following:
ATTRIB TEST.DLL
Typing ATTRIB without any arguments will give attribute information on
all the files in the directory. The output from ATTRIB will resemble the
following
ARH C:\TEST.DLL
where A stands for "archive", R stands for "read-only", and H represents
"hidden". Not all attributes will be shown for a given file. Consult
your MS-DOS documentation for more information on ATTRIB. - If it is a hidden file, for example, change the hidden attribute on the
file, using the ATTRIB command:
ATTRIB -H TEST.DLL
You may also use File Manager in Windows to change the file attributes
by selecting Properties from the File menu after selecting the file in
question. - Reinstall Visual C++.
If the file is not a hidden or read-only file, the file may be corrupted.
To resolve the problem in this case is more complicated because the Setup
program does not display the name of the corrupted file, but the last file
the Setup program installed successfully. A possible solution to the
problem is discussed in the "MORE INFORMATION" section below.
STATUS
Microsoft has confirmed this to be a bug in the products listed at the
beginning of this article. The problem was fixed in Visual C++ for Windows
1.51 and Visual C++ 2.0 32-bit edition.
Modification Type: | Major | Last Reviewed: | 10/24/2003 |
---|
Keywords: | kbbug kbfix kbsetup KB113063 |
---|
|