Microsoft KB Archive/216158

= BUG: Multiple "Please Insert Disk" Messages When Installing VB6 Application =

Article ID: 216158

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q216158



SYMPTOMS
When trying to install a distribution set built by the Package and Deployment Wizard (PDW), you receive one of the following messages:

Please insert disk

-or-

Cannot find file ' '. Please insert disk ' '

NOTE: is the name of a setup file or the folder that contains the setup files and is either the number of a diskette or blank.

If you click OK, you are prompted to insert a disk again.



CAUSE
There are two known causes of this problem:


 * Files from a previous failed installation attempt are still on the system.

-or-


 * The application's long file name was not converted to a valid short file name when creating the .cab files for a floppy-based distribution set. (There is a space within the first six characters of the application's .exe file name, and the resulting .cab file names contain a space.)



Testing for Left-Over Setup Files

 * 1) In the Windows folder (or Winnt folder on Windows NT and Windows 2000) on the target computer, look for a copy of each .cab file from your Setup. If found, delete the .cab file(s).
 * 2) In the Windows\Temp folder (or the folder specified by the TEMP environment variable in Windows NT and Windows 2000), look for a subfolder named Msftqws.pdw. If found, delete the subfolder.
 * 3) Run Setup again.

Removing Space from CAB File Names
NOTE: The following steps remove the space from the names of your existing .cab files. If you create .cab files using the PDW again later, the problem reoccurs. Instead, you may want to remove any spaces from the first six characters of your project (.vbp) and executable (.exe) file names to avoid this problem in future PDW sessions for this application.   On the development computer, open the Package\Support\ .ddf file in a text editor, such as Notepad. Change the following line:

.Set CabinetNameTemplate=" *.CAB"

to:

.Set CabinetNameTemplate=" *.CAB"

NOTE: is the current name that contains a space and is a new name that is six characters long without a space. For example, if the existing CabinetNameTemplate is set to "Test A*.CAB", you should change it to something like "TestAp*.CAB".  Save the changes to the .ddf file and close it. Double-click .bat in the Package\Support folder (where is the name of your application's .exe file) to create new .cab files in the Package folder. Delete the old .cab files from the Package folder.  Open Setup.lst in a text editor, such as Notepad, and change the following line:

CabFile=.CAB

to:

CabFile=.CAB

NOTE: <old name of first CAB> is the name of your old first .cab file that contained a space and <new name of first CAB> is the new name of your first .cab file. </li> Run Setup again.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbcab kbappsetup kbwizard kbpending KB216158

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.