rolandkg1001
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?
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.
or check this tutorial flash
http://www.delphi4arab.com/delphi/Delphi_7_and_Paradox_7_Under_Windows_7_Ultimate.rar
http://www.delphi4arab.com/delphi/Delphi_7_and_Paradox_7_Under_Windows_7_Ultimate.rar
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...
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
Program Files\Common Files\Borland Shared
and
Program Files\Common Files\Borland Shared\BDE
ASKER
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?
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
ASKER
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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