• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

Help with InstallShield to change BDE alias path to correct directory

Hello Delphi Experts,

When I install my Delphi database program on another computer, the installation routine changes the PATH parameter on the database alias in the BDE Administrator to the installation directory
(C:\ProgramFiles\AAA\Project2) instead of the directory where I put the database files (C:\ProgramFiles\AAA\Project2\Data).  I have looked and clicked everything I can think of to try to tell InstallShield to use the \Data directory when it changes the DB alias, but can't figure out how to do it.

If I copy the files up from the \Project2\Data directory into the \Project2 directory, the program works just fine.  But I wanted them in a seperate directory to make database backups easier.

Thank you for your insight into this situation.

Dean Atteberry.
1 Solution
See if this works,

1. In "General Options" option in general tab, when the BDE settings are defined,  set the path of the alias to <installdir>\Data (data being the folder to which the data files need to be copied).

2. In "Groups and files" option create a new group DATA and set the destination directory to <installdir>\Data

This should normally do the trick.
I also looked quite some time before I found out how to work with alias in the BDE.

I use the Installshield Express, delivered with delphi 6 I believe.
You can then define the database dir. But, more important,when you right click on the BDE merge module you can configure the alias and the path for that alias.
DeanAtteberryAuthor Commented:
30 seconds to implement your suggestion and it works great!

Thanks for your help!


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now