Need an executable routine with BDE for Delphi 3 that installs BDE only if it is not installed.

I asked this question once before, but did not get what I needed.

This is what I need:

An executable that will install BDE for Delphi 3 if, and only if, it is not already installed.
What I am looking for is an actual installation executable that will see if the BDE is installed and install it only if it is not installed.  It should not be divided up into 1.44 meg sections, but be an all-at-once "CD" type installation.  It will include the D3 BDE distribuatable files, and not just be a gateway to check for installation.

My email is:

pedwards@anedsociety.org

Please send it to me as an email attachment, and also include a comment here that you sent it, so that I can send you 2,000 points.  Thanks.

I have just been notified by the software that I can only award 500 points at a time.  I will adjust this to 500 points.  That can be it, if you think that is fair or, I am willing to do three additional "points to _______" questions if you would like.  I am not trying to go around the rules, just trying to save some time and effort to hit a deadline.  I have over 17,000 points that I don't need because I don't ask questions that often.

Thanks,
Phil
jpedwardsAsked:
Who is Participating?
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.

CrazyOneCommented:
Install Shield will do this

http://www.installshield.com/
0
BTechoCommented:
Hi.

The BDE can be a fairly large upload.

You can very simply do this yourself using InstallShield Express, that if I remember correctly comes with Delphi3?

If you dont have InstallShield Express you can use Inno,
http://www.jrsoftware.org/ishowto.phtml?a=bde


Another simple solution is to download BDEInfoSetup.zip from http://ibinstall.defined.net/dl_bdeinfo.htm
and extract the BDEInfoSetup.EXE installation file, it will install the BDE and add needed registry entries.

Then create a very simple Delphi app which will check if the BDE is installed (see this link www.scalabium.com/faq/dct0081.htm), if it isnt just use ShellExecute to run the BDEInfoSetup.exe

ShellExecute(Handle,
             nil,
             PChar('C:\somefolder\BDEInfoSetup.EXE '),  
             nil,nil,SW_SHOWNORMAL);


That seems to be it.
0
BTechoCommented:
Hello again.

I just checked out your previous post
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20376600.html

It seems some folks already have suggested using Inno and InstallShield. Has not that helped you in any way? If BDEInfoSetup.EXE is not what you want,  I'll try to makeup something else.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

BTechoCommented:
Hello again.

I just checked out your previous post
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20376600.html

It seems some folks already have suggested using Inno and InstallShield. Has not that helped you in any way? If BDEInfoSetup.EXE is not what you want,  I'll try to makeup something else.
0
jpedwardsAuthor Commented:
Thanks BTecho.  That would be great.  I have a daughter named Echo.

Thanks
0
jpedwardsAuthor Commented:
I don't understand what "BDEInfoSetup.EXE" is.

Phil
0
BTechoCommented:
Hi Phil.

BDEInfoSetup.EXE is just an installation batch, like any other ordinary setup that many applications use. It will just install the BDE for you. It will check if any application using the BDE are open, and ask you to close them before proceeding. I can't check this at the moment but if it will find an older version of the BDE it will ask if you want to proceed, if that version is already installed it will not install the BDE , but it will overwrite the the existing config file, thats where the BDE settings that you find the BDE Admin are held, there is a Advanced Settings button you click and you'l have some options you can set. So if you custom action like not continuing no matter what BDE version is installed you will have to check that for yourself using the method I mentioned.

Since the BDE is backward compatible you should not have any trouble using version 5.2 of the BDE with a Delphi3 application.

Hope this helps!
0
BTechoCommented:
Hi Phil.

BDEInfoSetup.EXE is just an installation batch, like any other ordinary setup that many applications use. It will just install the BDE for you. It will check if any applications using the BDE are open, and ask you to close them before proceeding. I can't check this at the moment but if it will find an older version of the BDE it will ask if you want to proceed, if that version is already installed it will not install the BDE , but it will overwrite the the existing config file, thats where the BDE settings that you find in the BDE Administrator are held, there is a Advanced Settings button you click and you'l have some options you can set. So if you want custom action like not continuing no matter what BDE version is installed you will have to check that for yourself using the method I mentioned.

Since the BDE is backward compatible you should not have any trouble using version 5.2 of the BDE with a Delphi3 application.

Hope this helps!
0
jpedwardsAuthor Commented:
I see why you are called "BTecho".
That is interesting that you say that the BDE is backward compatible, I had not heard that before.  Last summer I had a five year old D3 program that worked fine.  I loaded it into a machine with D4 and it had several errors generated from the db.

I don't remember what the errors were, but I found that whole version of D4 to be trash.  It quickly killed the new hard drive that I had it on, and I had to scrub and start all over again.

I am willing to try a 5.2 version of the BDE installer that you speak of.  Do you have a copy of BDEInfoSetup.EXE?

Phil

0
kretzschmarCommented:
you can lookup the registry-key

HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Database Engine

for existence,
additional maybe read there the DLLPath-Key,
and lookup the existence for this directory

additional read

http://www.peter3.com/Artiklar/BDE_manualinstall.htm
http://www.jrsoftware.org/ishowto.phtml?a=bde


meikl ;-)

0
BTechoCommented:
You can get BDEInfoSetup.exe here, its just zipped up in the BDEInfoSetup.zip file ;-)
http://ibinstall.defined.net/dl_bdeinfo.htm

Also you can get BDE version 5.10 from Borland's site,its also a BDE only setup. The site also lists all the details of the setup.
http://info.borland.com/devsupport/bde/oldver.html

If you prefer Borland's installer, AFAIK there where no fixes for Paradox or DBase. Just added support for Interbase,Oracle and some help file modification. So you can just install 5.10.

Also the main BDE site has some interesting info you might find in handy,
http://info.borland.com/devsupport/bde

[quote]
Last summer I had a five year old D3 program that worked fine.  I loaded it into a machine with D4 and it had several errors generated from the db.
[/quote]

Hmm, just some speculation. Perhaps it was some of the BDE settings in the BDE Admin. It can depend if LocalShare was supposed to be true or false for your application.

Its kind of late here where I am, and its been a long day.
Till tommorow :-)
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
tkalchevCommented:
Why you not simply use the provided from Borland MSI files, which are compatible with the Windows Installer, or the BdeInst.dll, also provided by Borland.
0
BTechoCommented:
Hi again.

I was browsing Code Central this morning and came about the source the for the BDEInfoSetup application,I hope you can find it to be usefull.

http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=17174

Source:
http://codecentral.borland.com/codecentral/files/2001/12/13/17174/17174_bde_information_utility_source.zip


Also I mentioned a link www.scalabium.com/faq/dct0081.htm

It calls DbiInit to try and initialize the BDE environment. After calling DbiInit you should also call DbiExit to close the BDE connection to the app, that is if you don't plan to use the BDE in anyway after that. In any case the source to BDEInfoSetup also shows how to check if the BDE is installed correctly.

0
kretzschmarCommented:
0
jpedwardsAuthor Commented:
Thanks, BTecho.  I have not tested this routine yet, as I have to build a hard drive that does not have BDE to do so. I will however award you the 500 points here.  If you want the other 1500 points, just put in another comment saying so, and I will put up some dummy questions just for you.  Let me know, and thanks for your kind help.

I also wish to thank the others who offered your kind help.

Phil
0
BTechoCommented:
Hi Phil :)

Very much would like to know how it went. Did you successfully install the BDE in the manner you wanted?  

P.S
No thanks, no need for the other 1500 points.
0
jpedwardsAuthor Commented:
Thanks for asking BTecho.  I am on a project and I have to try to schedule my time.  I am going to have to build another computer to try this out on.  I is not presently my highest priority.  But when it is time to test it, I will let you know how it goes.

Thanks Again,
Phil
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.