FIX: ODBC Files Get Copied to Distribution Disks in VFP 3.0 (164389)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Data Access Components 2.5
This article was previously published under Q164389 SYMPTOMS
When leaving the ODBC Drivers check box blank in step 2 of the Setup Wizard
in Visual FoxPro 3.0, the desired effect is to avoid having the ODBC files
copied to the disk images. The problem is that some of the ODBC files get
copied to the disk images even if the ODBC check box is clear.
There are at least seven files that get copied onto the disk images. They
are listed below:
- Odbccp32.dl_
- Odbcinst.dl_
- Odbcint.dl_
- Odbckey.dl_
- Odbcstf.dl_
- Odbcstp.dl_
- Odbcexec.ex_
RESOLUTION
To ensure that these files do not get copied onto the disk images, complete
the following steps:
- Delete the Visual FoxPro \Distrib directory.
- Open the Compress.dbf table in the Visual FoxPro \Distrib.src directory
and make a backup of it.
- Create an index on the DEST field. Locate Odbc.dl_ in the DEST field.
Move the record pointer to that record.
- Issue the following command in the Command window:
DELETE NEXT 52
Browse the table to make sure that only names that start with OD in the
DEST field are marked for deletion. There might be more than 52 records
that start with OD. If so, mark them for deletion also.
- Now that the ODBC files are marked for deletion in the Compress table,
pack the table and close it.
- Delete the Compress and Disk images directories under the destination
directory if they have been created from an earlier session of the Setup
Wizard. Also delete the Dkcontrl.dbf, Dkcontrl.cdx, and Wzsetup.ini
files located in the directory where the source files are.
- Run the Setup Wizard to rebuild the Visual FoxPro \Distrib directory and
the Disk images directories. Note that opening up each of the disk
images shows that there are no ODBC files now.
- Open the Setup.st1 file in the DISK1 directory with Notepad and place a
semicolon at the beginning of any line that represents an ODBC file. The
semicolon acts as a remark statement allowing the setup routine to
bypass that line. This step has to be repeated every time the Disk
images are re-created.
To be able to change back to checking the ODBC drivers check box in the
Setup Wizard and loading the ODBC files into the Disk images directories,
replace the Compress.dbf file in the Visual FoxPro \Distrib.src directory
with the backup that was created and delete the Visual FoxPro \Distrib
directory. Running the Setup wizard re-creates the Distrib directory and
add the ODBC files to the Disk images.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem was fixed in Visual
FoxPro 5.0.
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | kbBug kbfix KB164389 |
---|
|