BUG: Setup Cannot Create Directory ":\:INDOWS"

Last reviewed: July 22, 1997
Article ID: Q114375
1.00 1.50 WINDOWS kbsetup kbbuglist

The information in this article applies to:

- Microsoft Visual C++ for Windows, versions 1.0 and 1.5

SYMPTOMS

During installation, the Visual C++ setup can fail with a message box that reads as follows

 Cannot create directory :\:INDOWS

or:

 '\WINDOWS\SYSTEM.INI' cannot be opened for reading.

or a similar message containing a different garbled windows directory name.

CAUSE

The path environment variable contains an entry for "\WINDOWS" or ".\WINDOWS" instead of a full path such as "C:\WINDOWS".

RESOLUTION

Edit the path in your AUTOEXEC.BAT file to include:

   <drive letter>:\WINDOWS

where <drive letter> is the drive on which Windows is installed. Remove any references to the WINDOWS directory that do not include drive letters.

STATUS

Microsoft has confirmed this to be a problem in Visual C/C++ versions 1.0 and 1.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The information the Visual C++ Setup program uses for the Windows location is derived from the PATH environment variable which is set in the AUTOEXEC.BAT file.

Using a "\WINDOWS" or ".\WINDOWS" in the PATH statement will also modify the "windir" environment variable, which Setup and other Windows applications depend on. For this reason, "windir" should be a fully qualified path, including a drive specification.

When Visual C++ tries to place files in the Windows directory, it assumes the directory does not exist, which causes the setup program to fail and display one of the above messages. This problem is not likely to occur on Windows NT, since the windir environment setting cannot be modified by the user.


Additional reference words: 1.00 1.50
KBCategory: kbsetup kbbuglist
KBSubcategory: vc10setup vc15setup
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.