BUG: Adding Multiple Files with 16-Bit SetupWiz Fails on Win95

Last reviewed: September 12, 1996
Article ID: Q147583
The information in this article applies to:
  • Professional and Enterprise Editions of Microsoft Visual Basic, 16-bit only, for Windows, version 4.0
  • Microsoft Windows 95

SYMPTOMS

Attempting to add more than one file in Step 7 of the Visual Basic 4.0 Setup Wizard fails. After selecting multiple files and clicking OK, the Setup Wizard displays a dialog containing "This file may be required for your program to run correctly" and prompts if a search for this file should be continued. If the search is terminated, a dialog displays "The file(s) you selected were already in the list. No new files have been added."

CAUSE

The Setup Wizard attempts to look for a single file with a filename that is the concatenation of all the files selected. This problem only occurs with the 16-bit version of the Microsoft Visual Basic 4.0 Setup Wizard for Windows when run on Microsoft Windows 95. It does not occur on Microsoft Windows NT version 3.51 or on any 16-bit Microsoft Windows operating system. This problem does not occur using the 32-bit version of the Microsoft Visual Basic 4.0 Setup Wizard for Windows.

WORKAROUND

Use any of the following methods to work around this problem:

  • Add each file one at a time.

    - or -

  • Create setup media or a template (.Vbz) file for the setup using an operating system other than Microsoft Windows 95. If a template is created on another machine, then the .Vbz file can be copied to the Microsoft Windows 95 machine and selected in Step 1 of the Setup Wizard using the Load Template button.

    - or -

  • Add files manually to a template file generated on the Windows 95 machine. In step 7, click Save Template and save a template(.Vbz) file to disk. Open this template file in a text editor and manually add a line for each file that you want to add. Listed below are some sample added FileXX lines, just replace the first parameter with the path to the file you wish to include:

          File17=C:\ENROLL\ENROLL.ICO,0,$(AppPath),,|32760|,-1,0,0,0,,,0
          File18=C:\ENROLL\MSTRS.EXE,0,$(AppPath),,|32760|,-1,0,0,0,,,0
          File19=C:\ENROLL\README.HLP,0,$(AppPath),,|32760|,-1,0,0,0,,,0
          File20=C:\ENROLL\TRAIN.HLP,0,$(AppPath),,|32760|,-1,0,0,0,,,0
    

    Then restart the Setup Wizard and click Open Template to load the modified template file.

STATUS

Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. We will post new information about this issue here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps To Reproduce Problem

  1. Start the 16-bit version of the Visual Basic 4.0 Setup Wizard for Windows.

  2. In step 1, select the .Vbp file for the Calc sample (located in the Vb\Samples\Calc directory).

  3. Click Next repeatedly until Step 7 is reached.

  4. Click 'Add Files...' and select more than one file in the common dialog that displays. The above mentioned dialogs display after clicking OK to dismiss the dialog.


Additional reference words: 4.00 4.00a vb4win vb416 buglist4.00
KBCategory: kbprg kbbuglist
KBSubcategory: TlsSetWiz


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: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.