Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deploying my database

Status
Not open for further replies.

yomyom

Programmer
Dec 23, 2002
119
GB
Hi all, long time.
I'm feeling rusty and need a jolt!!! I've written my killer app and it is driven by delphi as a front end, and ms-acess as the database (back end - single user!!!). My problem now, is that because I'm using the installer bundled with delphi, i'm not sure how to setup my ADO connection string so as to point to the table at all times.
When I pre-determine where to find the table (database) after installation it works fine, but if the user should select a different default for setup, my prog will not run well since the database will not be located.
I tried using [default\\, [..\\], [\\] etc, as part of the pathname in the setting up of the 'Adotable1.connectionString1' and none seems to work.
Can someone pls help solve my problem?
Thanks in advance.
 
Hi,

why not store the installation directory in registry? this value can be set by the installer app (installshield, wise, ...)
at application startup you read the instaldir reg value and use this in the connectionstring

cheers,
Daddy

--------------------------------------
What You See Is What You Get
 
I partially understand what you mean, and I'll try it, but an example would help. I'll be back in touch.
installshield does not explain the registry stuff too well, but I'll delve into it anyway. Thank you V. much.
yomi.
 
I actually have a copy I downloaded last year, but I found Installshield easier to use. Now that I know that inno can solve my problems, I'll take the time to go through and learn how to use it. Please inform me of any site(s) with tips or howto for inno installer. Thank you V.much.
Yomi.
 
Inno know why I've not been using inno since. Its fantastic.
However, how do I create a short cut on the desk top?
Can it be used to limit number of installations?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top