Microsoft KB Archive/194195

= FIX: Setup Wizard Cannot Differentiate Files With Same Name =

Article ID: 194195

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q194195



SYMPTOMS
The Setup Wizard is not able to differentiate between files in the same project that have the same name but are stored in different directories.



RESOLUTION
Save the files so that they have different file names.



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

This bug has been fixed in the updated version of the Setup Wizard Vfp6swiz.exe dated 10/08/1998. This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



MORE INFORMATION
If a project has files that have the same name but are saved in different directories, the Setup Wizard is not able to differentiate between them. The Setup Wizard pulls the first file that it finds and then installs the same file to the different directories.

Steps to Reproduce Behavior
  Create a Project Directory Tree as follows:      ..\TestProj ..\TestProj\File1\ ..\TestProj\File2\  Create a new project and save it as MyProj1 to the TestProj directory. Create the following files and store them in the ..\TestProj\File1 directory:

 A Table named "Tbl1" with at least one character field. This can be a free table or in a database container (.dbc). Insert a string such as "11111" to the character field.

 A form named "Frm1." Add a label and set the caption of the label to "ONE."

</li> A class library named "ClsLib1" with a class called Test, based on the form class. Add a label to the class and set its caption to "ONE."

</li> A program file named "Prg1" with the " WAIT WINDOW 'ONE' " command.</li></ul>

</li> Create the following files and store them in \TestProj\File2 directory:

<ul> A table named "Tbl1" with at least one character field. This can be a free table or in a database container (.dbc). Insert a string like "22222" into the character field.

</li> A form named "Frm1". Add a label and set the caption of the label to "TWO."

</li> A class library named "ClsLib1" with a class called Test, based on the form class. Add a label to the class and set its caption to "TWO."

</li> A Program file named "Prg1" with the " WAIT WINDOW 'TWO' " command.</li></ul>

</li> Run the Setup Wizard and create the distribution files.</li> Install the application from the distribution files to a directory named "..\TstApp."</li> Modify each of the files in "..\TstApp\File2."</li></ol>

Note that the contents of each of the file in "..\TstApp\File2" are the same as their counterparts in "..\TstApp\File1," instead of the actual entries. For example:
 * Tbl1 contains the record "11111" instead of "22222."
 * The Caption of the label in Frm1 is "ONE" instead of "TWO."
 * The Caption of the label in Test class is "ONE" instead of "TWO."
 * The command in Prg1 is Wait Window "ONE" instead of Wait Window "TWO."

RESULTS: The Setup Wizard took the set of files in the "..\TestProj\File1" source directory and installed the same files to both the "..\TestApp\File1" and "..\TestApp\File2" directories. The Setup Wizard should have pulled and installed two different sets of files for the File1 and the File2 sub- directories of TestApp.

<div class="references_section">