Microsoft KB Archive/239069

From BetaArchive Wiki
Knowledge Base


PRB: Cannot Open or Find File Error Message When Installing VB Application

Article ID: 239069

Article Last Modified on 6/24/2004



APPLIES TO

  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
  • Microsoft Visual Basic 5.0 Control Creation Edition
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic 4.0 32-Bit Enterprise Edition



This article was previously published under Q239069

SYMPTOMS

While attempting to install a Visual Basic application, one of the following errors occurs:

(VB4) Could not open the file named: <DRIVE LETTER>:\<FILENAME>

(VB5) Cannot find the source file '<DRIVE LETTER>:\\<FILENAME>' to install.

(VB6) Cannot find file '<DRIVE LETTER>:\<FILENAME>. Please insert disk'.

Once one of these errors occurs, the installation does not complete successfully.

CAUSE

This error occurs because the drive from which installation is running does not support long filenames and the specific file referenced in the error message contains a long filename. This problem is most common with CD-ROM drives whose driver is out of date and does not offer support for long filenames. However, this problem can also occur on any other drives (network, floppies, and so forth) that also lack support for this feature.

RESOLUTION

Several solutions exist for this problem:

  1. Obtain and install an updated driver that adds support for long filenames on the device in question.


Modify the project such that no long filenames are used by any of the project's files, and then re-deploy.

Copy the entire contents of the setup from the CD (or network drive) to a folder on the local hard drive. Rename all files in this directory that currently have short filenames but originally contained long filenames. The correct long filenames can be determined by viewing the [FILES] and/or [BOOTSTRAP] sections of the SETUP.LST file. Finally, run SETUP.EXE from this local folder.

  1. Modify the project such that no long filenames are used by any of the project's files, and then re-deploy.


Copy the entire contents of the setup from the CD (or network drive) to a folder on the local hard drive. Rename all files in this directory that currently have short filenames but originally contained long filenames. The correct long filenames can be determined by viewing the [FILES] and/or [BOOTSTRAP] sections of the SETUP.LST file. Finally, run SETUP.EXE from this local folder.

  1. Copy the entire contents of the setup from the CD (or network drive) to a folder on the local hard drive. Rename all files in this directory that currently have short filenames but originally contained long filenames. The correct long filenames can be determined by viewing the [FILES] and/or [BOOTSTRAP] sections of the SETUP.LST file. Finally, run SETUP.EXE from this local folder.


STATUS

This behavior is by design.

Keywords: kberrmsg kbprb kbwizard kbdeployment kbfileio KB239069