Link to home
Start Free TrialLog in
Avatar of rolandkg1001
rolandkg1001Flag for Austria

asked on

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

Avatar of Mahdi78
Mahdi78
Flag of Algeria image

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
Avatar of rolandkg1001

ASKER

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...
You found it in
Program Files\Common Files\Borland Shared
and
Program Files\Common Files\Borland Shared\BDE
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?
Copy those files to your application (exe) folder
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?

Mine is 20-08-2002 version 5.2.0.2
ASKER CERTIFIED SOLUTION
Avatar of 8080_Diver
8080_Diver
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial