Paul,

Here is what I understood you were trying to do.

1. If you are installing a new customer, you want to use an allowed folder
(CSIDL). It doesn't matter what the OS, you want to put the INI file
somewhere that MS says is OK

2. If you are installing to a customer that that already has an old version
of the app (maybe running in an older version of the OS, it doesn't really
matter) you want to continue to use the old ini file which already exists.

3. Now that you have the ini file (new or old and it doesn't matter what OS)
it tells you where the data is.

You need this INI file location in your program at runtime when you want to
access the DB, not when the program is being installed. So you need to find
the CSIDL location using propath, winevent or SV's new feature in C7.1.
You will need IF EXISTS to determine if the INI file already exists.
Nothing in SB.

My recommendation if that if you find the existing INI file in a location
that is no longer allowed by windows, you move it to a valid location and
forget about the old location. Just use the allowed location for new or old
installs. If the INI file doesn't exist (new install) use the valid
location.

If I have your objectives all wrong, I apologize, please forget about his
post.

Regards,

--
Regards,
Abe Jimenez
Clarion 7.1.7118 EE
Windows 7 Pro 64 Bit