Need a tool which changes the bde Paradox database net dir path ( to make bde windows 7 ready)

Hi,

I try to help a firm which has developed years ago a biofeedback software, which uses a bde database. Unfortunately the software does not work anymore in vista and windows 7.
The reason is, so far as I have found out, that first  in the registry the hklm/software/borland has not sufficiant permissions and second the net dir path needs to be changed from "C:\" to a different path.

So I wrote with inno setup a new installation script, which sets the permission. But I need a way to change the net dir path during installation. I have found code snippets for doing that, but I have no delphi compiler. I need a exe for changing the net dir path during installation to make the bde windows 7 and vista ready. I am only able to change the innosetup installation and not the application itself, because the programmers who have developed the biofeedback application, have left the firm years ago...

Is anyone out there who has a exe file for me, which I can use during installation for changing the net dir path of the bde database? Or someone who has an idea how to make the bde vista ready, so that the biofeedback application which uses the database is running on Vista and Windows, too?


{$APPTYPE CONSOLE} 
uses 
SysUtils, BDE; 
var 
hCur : hDBICur; 
Config : CFGDesc; 
begin 
if (ParamCount <> 1) or (DbiInit(nil) <> DBIERR_NONE) 
then Exit; 
hCur := nil; 
// Paradox 
if (DbiOpenCfgInfoList(nil, dbiREADWRITE, cfgPersistent, 
'\DRIVERS\PARADOX\INIT', hCur) = DBIERR_NONE) and 
(DbiSetToBegin(hCur) = DBIERR_NONE) 
then 
while DbiGetNextRecord(hCur, dbiWRITELOCK, @Config, nil) = 
DBIERR_NONE do 
begin 
if StrIComp(Config.szNodeName, 'NET DIR') = 0 
then 
begin 
StrCopy(Config.szValue, PChar(ParamStr(1))); 
DbiModifyRecord(hCur, @Config, true); 
end; 
end; 
DbiExit(); 
end.

Open in new window

rolandkg1001Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mahdi78Commented:
It enough to put the following files in application folder

IDR20009.DLL
CHARSET.CVB
EUROPE.BTL
FAREAST.BTL
IDAPI32.DLL
IDBAT32.DLL
IDDBAS32.DLL
IDPDX32.DLL
BANTAM.DLL
IDSQL32.DLL
OTHER.BTL
SQLINT32.DLL
USA.BTL
0
rolandkg1001Author Commented:
Really? Would be great!
Where can I find those files?
And after that I really do not need to change the net dir path anymore? Because vista does not allow to write into the root directory...
0
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

Mahdi78Commented:
You found it in
Program Files\Common Files\Borland Shared
and
Program Files\Common Files\Borland Shared\BDE
0
rolandkg1001Author Commented:
Sorry for asking again, but I have no knowledge with delphi...

Do I have to copy or to move those files to the directory where the biofeedback application exe is running?
0
Mahdi78Commented:
Copy those files to your application (exe) folder
0
rolandkg1001Author Commented:
Ok, many thanks to you!!
I have found all files - only SQLINT32.DLL is missing?!
The date of the bde files are 12.11.1999 - is this correct?

0
Mahdi78Commented:
Mine is 20-08-2002 version 5.2.0.2
0
8080_DiverCommented:
rolandkg1001,
I would seriously suggest to the firm that they need to bring their application into the 21st century and get it rewritten to handle the data without the BDE.  The BDE was de[precated long before Vista, much less Windows 7.
Paradox is also a deprecated database.  It was never the most network/multiuser friendly database.
Does the firm have the source code or are they running on a totally unsupported/unsupportable executable?  If the latter, then they would be well advised to get it rewritten before there is a version of Windows that it is absolutely incompatible with.  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.