
October 1st, 2012, 07:40 AM
|
|
Contributing User
|
|
Join Date: May 2012
Posts: 140
Time spent in forums: 1 Day 4 h 53 m 15 sec
Reputation Power: 2
|
|
Nowadays it is a bad call to store your data in "Programs" folder. This is due to UAC. See my article about it here: http://forum.codecall.net/topic/601...th-delphi-code/.
Regarding your problem, you must define a rule of how to find your database file. For example, you might want to store your db file in user's local application data under your custom subfolder. IF the db is not there, you must create fresh db file. Or you can warn your users and instruct them on how to get proper db file.
Another option is to allow users to change the db location. For this, you must provide a configuration gui so user can do the selection, and store the current value. You can store the value in your configuration file ( .ini file for example), or in registry. I recommend to store in .ini file.
Last edited by Luthfi : October 1st, 2012 at 07:43 AM.
|