Delphi: Borland Database Engine: BDE: Deployment: How create standalone version using InstallShield?
Dec 26th, 2008 21:33
Rockys rainwal, Raj Aryan, Knud van Eeden, http://rajasthantravelsguide.blogspot.com/
Language: Computer: Delphi: v6/v7: Database: BDE: Stand alone: Create:
InstallShield Express: How to create a stand alone file for a database
(e.g. Borland CaseAssigner) using InstallShield Express?
1. -start the program 'Install Express for Borland'
(e.g. if you have installed it from the Borland CD, you should
find it via 'Start->Programs->InstallShield')
2. -select from menu option 'File'
3. -select from list 'Project Wizard'
4. -click button 'Next'
5. -enable radio button 'Create a New Project'
6. -type the text '<your project name>' (e.g. 'Borland Case
in the text box
7. -Choose the 'Project Language'
(e.g. 'English (United States)'
or 'French' (if available))
8. -click button 'Next'
9. -type the text '<your application name>'
in the text box 'Application name'
10. -type the text '<your version number>' (e.g. 1.00.0000)
in the text box 'Application version'
11. -type the text '<your default destiination folder>'
(e.g. '[ProgramFilesFolder]\Knud software\Caseassigner',
this will store your program in the folder
'c:\program files\knud software\caseassigner' by
during your installation)
in the text box 'Default Destination folder'
12. -click button 'Next'
13. -accept if applicable the enabled checkbox
'Enable your product to receive updates via the
InstallShield Update Service'
14. -click button 'Next'
15. -type the text '<your company name>' (e.g. 'Knud
in the text box 'Company Name'
16. -type the text '<your helpline telephone number>'
in the text box 'Help Telephone Number'
17. -type the text '<your URL for your company>'
in the text box 'URL for Company or Product
18. -click button 'Next' (you usually have not to add
extra directories where to install)
19. -click button 'Add Files...' to select all the
which you want to be added so that they will be
copied to the destination directory during your
(e.g. browse to
and select the file
o all the *.DB files (your databases)
20. -click button 'Next'
o Shortcut icon:
(if you right click on the
option (e.g. desktop)), you can select a
where any shortcut will be installed
(to find an icon, browse e.g. to the location
where your .exe file is stored (as this
an icon), e.g. browse to
then select 'caseassigner.exe'. This will
show you the icon associated in this
o Start menu:
If you want to have your program added to the
start menu (in 'Start'->'Programs', you
do this by right clicking on the entry
'Start menu' and browsing to your program)
21. -click button 'Next'
(you might select 'CheckforUpdates', by
on the rightmost option in the tree)
22. -click button 'Next'
23. -click button 'Next' (you usually do not
to supply registry data)
24. -click button 'Next' (so you accept that
'Ready to Install'
are included in the setup, you will have
supply yourself this information
later via InstallShield)
25. -click button 'Finish' (build a release)
26. -if this was successful, you can now add
BDE support in the resulting 'setup.exe'
-select from menu option 'Go'
-select from menu option
'Specify Application Data'
-enable checkbox 'BDERTL'
-enable checkbox 'BDE_ENT'
-this will open the 'BDE DEsigner'
'Create a new BDE Configuration
-click button 'Browse', and browse
and name the file 'caseassigner'.
This will be saved then as
'caseassigner.ini' in this
-click button 'Launch'
-click button 'Add'
-select from listbox 'Alias
the alias 'BorlandCaseAssigner'
(of course you must have
created this alias before,
using e.g. the BDE
Now it is important that you
the PATH which belongs to this
ALIAS. The path should be the
path on the computer where it
will be installed, and so not
your own path.
So use the 'Edit' button, then
button 'Defaults to change the
path (type e.g. after 'PATH='
software\Borland Case Assigner'
which is the default
destination directory on
each computer where your
will be installed).
This alias will now point to
the .DB tables installed in
(via menu 'Database'-
to 'BorlandCaseAssigner' and
save the settings)
-click button 'OK'
-click button 'Close'
-click button 'Yes' (when
to 'Save changes and exit')
-click button 'Next'
-click button 'Finish'
-start the project wizard
again (after accepting
save the settings) and
this project to a new
(this file you can find
button 'Open a Recent Project'
project, then click
'Next' you can add
Add now also your BDE
in the directory of
then click 'Next'
-if you now copy this
file 'setup.exe' to
a disk or USB and
it on another
you should be able to
use the application.
If you get error messages that BDE is running, shut down Delphi or
any Borland program you might been running at that time.
If you get fatal errors while compiling in InstallShield Express,
make sure that the destination directory is not in use by another
program (e.g. MSDOS, or Microsoft Explorer). Shut this programs
down for example, then rebuild the project.
I installed the program running 'setup.exe' on another machine,
running Windows 2000 Professional.
But I immediately got the error that
the 'program has generated errors and will be shut down by Windows.
an error log has been created'.
Now, your 'setup.exe' file, as generated by InstallShield Express
should in principle contain all the necessary BDE files,
which during installation of setup.exe will be unpacked in the fixed
'c:\program files\common files\borland shared\bde'.
Now if this directory already exists on the target machine, it
might give problems running your program.
This was the case on this machine.
(check directory c:\program files\common files\borland shared',
and check if the directory 'BDE' exists there. It was).
So a possibility to solve this might be to:
1. to uninstall your program (using Windows 'Add/Remove programs'
in the control panel)
2. completely delete this BDE directory and its contents
(e.g. using Windows Explorer, right click on the directory,
and select 'Delete')
3. to reinstall your program again, by running the setup.exe program
again (e.g. by double clicking on it in Microsoft Windows Explorer)
If everything goes OK, you should see that a new BDE directory has
been created in:
'c:\program files\common files\borland shared\bde',
containing also the information of your program
(e.g. click on 'BDE Administrator'
to see your defined ALIAS (e.g. 'BorlandCaseAssigner') in the list),
with your specified path
(which should by default here be:
'c:\program files\Knud software\Borland Case Assigner'.