BUG: Setup Incorrectly Prompts to Overwrite Existing Files (162620)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q162620 SYMPTOMS
When you run Setup files that you created with the Visual Basic Application
Setup Wizard, the following warnings appear:
Setup is about to replace a pre-existing file(s). This may cause loss of
data for an existing application.
followed by:
Installing over an existing installation without first removing it may
damage that installation or cause future attempts to remove the
installation to fail.
This warning occurs even when the files are marked as "shared" in the
Application Setup Wizard.
CAUSE
If a Template is defined in step 7 (the final step) of the Application
Setup Wizard the resulting .lst and .vbz are incorrect for system-shared
files that you added manually in step 7.
RESOLUTION- Recreate your images without using your template and do not choose to
save a template in step 7 of the Application Setup Wizard. Save the
template in the Finish dialog box after the Application Setup Wizard
has compressed all the files.
-or-
- Modify your existing .lst and .vbz files. In the .lst files, modify the
7th field of the appropriate system file so it contains $(Shared). In
the .vbz, modify the 7th field so it contains -1. For example, when the
warning occurs referencing Mfcans32.dll, the .lst file looks like the
following:
File5=1,,MFCANS32.DL_,MFCANS32.DLL,$(WinSysPath),,,6/21/1995,149504,3.2.0.0
and the .vbz file looks like:
File11=E:\vbtemp\MFCANS32.DLL,0,$(WinSysPath),,|32760|,-1,0,0,0,,,0
Modify the .lst file as follows:
File5=1,,MFCANS32.DL_,MFCANS32.DLL,$(WinSysPath),,$(Shared),6/21/1995,14950
4,3.2.0.0
and change the .vbz entry to:
File11=E:\vbtemp\MFCANS32.DLL,0,$(WinSysPath),,|32760|,-1,-1,0,0,,,0
The Template file (.vbz) should now be correct and generate correct
images in the future.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Visual Basic
version 4.0. Microsoft is researching this problem and will post new
information here as it becomes available.
Modification Type: | Major | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbBug kbsetup KB162620 |
---|
|