faqts : Computers : Programming : Languages : Delphi : Database

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 35 people (57%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

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?
Steps: Overview:
 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 
Assigner')
          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>' 
(e.g. 'borlandcaseassigner')
             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 
default
                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 
software')
                    in the text box 'Company Name'
16.                 -type the text '<your helpline telephone number>'
                     (e.g. +1-555-555-4505)
                     in the text box 'Help Telephone Number'
17.                  -type the text '<your URL for your company>'
                      (e.g. http://www.knudvaneeden.com)
                      in the text box 'URL for Company or Product 
Information'
18.                   -click button 'Next' (you usually have not to add
                       extra directories where to install)
19.                    -click button 'Add Files...' to select all the 
files
                        which you want to be added so that they will be
                        copied to the destination directory during your
                        setup installation
                        (e.g. browse to
                        'c:\bbc\taal\kaspersky\delphi\caseassigner')
                        and select the file
                         o 'CaseAssigner.exe'
                         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 
target
                         where any shortcut will be installed
                         (to find an icon, browse e.g. to the location
                          where your .exe file is stored (as this 
contains
                          an icon), e.g. browse to
                          c:\bbc\taal\kaspersky\delphi\caseassigner,
                          then select 'caseassigner.exe'. This will 
then
                          show you the icon associated in this 
program).
                          o Start menu:
                          If you want to have your program added to the
                          start menu (in 'Start'->'Programs', you 
should
                          do this by right clicking on the entry
                          'Start menu' and browsing to your program)
21.                      -click button 'Next'
                          (you might select 'CheckforUpdates', by 
clicking
                           on the rightmost option in the tree)
22.                       -click button 'Next'
23.                        -click button 'Next' (you usually do not 
have
                            to supply registry data)
24.                         -click button 'Next' (so you accept that 
the
                             'License Agreement'
                             'Customer Information'
                             'Ready to Install'
                             are included in the setup, you will have 
to
                             supply yourself this information 
separately
                             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' 
wizard
                                   -enable checkbox
                                    'Create a new BDE Configuration 
file'
                                    -click button 'Browse', and browse 
to
                                     the directory
                                     (e.g.
                                     'c:\bbc\taal\kaspersky\delphi\case
assigner')
                                     and name the file 'caseassigner'.
                                     This will be saved then as
                                     'caseassigner.ini' in this 
directory
                                     -click button 'Launch'
                                      -click button 'Add'
                                       -select from listbox 'Alias 
name'
                                        the alias 'BorlandCaseAssigner'
                                        (of course you must have 
already
                                         created this alias before,
                                         using e.g. the BDE 
Administrator
                                         in Delphi)
                                         Now it is important that you 
edit
                                         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='
                                         the path
                                         'c:\program files\Knud 
software\Borland Case Assigner'
                                         which is the default 
destination directory on
                                         each computer where your 
program
                                         will be installed).
                                         This alias will now point to
                                         the .DB tables installed in 
this
                                         directory.
                                         (via menu 'Database'-
>'Explore'->
                                          'New'->Standard'->change the
                                          name 
to 'BorlandCaseAssigner' and
                                          save the settings)
                                         -click button 'OK'
                                          -click button 'Close'
                                           -click button 'Yes' (when 
asked
                                            to 'Save changes and exit')
                                            -click button 'Next'
                                             -click button 'Finish'
                                              -start the project wizard
                                               again (after accepting 
to
                                               save the settings) and 
rebuild
                                               this project to a new
                                               'setup.exe'
                                               (this file you can find 
in:
                                                'c:\documents and 
settings\administrator\my documents\mysetups\caseassigner'
                                                by default)
                                                -enable radio 
button 'Open a Recent Project'
                                                 and select 
the 'CaseAssigner.ism'
                                                 project, then click
                                                 'Next' you can add 
files.
                                                 Add now also your BDE
                                                 configuration file
(e.g. 'caseassigner.ini',
                                                 in the directory of
                                                 casessigner).
                                                 then click 'Next' 
until finished.
                                                 -if you now copy this
                                                  file 'setup.exe' to
                                                  a disk or USB and 
install
                                                  it on another 
machine,
                                                  you should be able to
                                                  use the application.
---
Trouble shooting:
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 
directory
'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'.
)
---
http://www.jaipurtravelguide.com/
http://www.jaipurtravels.com/
http://www.jaipurjaipur.com/
http://www.jaipurtourismguide.com/
http://www.rajasthantravelsguide.com/
http://www.rajasthantravelguide.co.in/
http://www.travelpackagerajasthan.com/
http://www.namaskarindiatravels.com/
http://www.indianhotelsindia.com/
http://www.travelpackageindia.com/
http://www.navyatravels.com/
http://www.hillstationindiatour.com/
http://www.wildlifeindiatravel.com/ 
http://www.pushkartravels.com/
http://www.udaipurtravels.com/
http://www.agratravels.com/
http://indiantravelguide.co.in/
http://www.traveltoindia.biz/
http://www.info4india.com/
http://www.indiantravelsguide.com/
http://www.indiantravelguideindia.com/
http://rajasthantravelguide.wordpress.com/
http://attractioninjaipur.blogspot.com/
http://jaipurtravelsguide.blogspot.com/
http://hoteles-en-la-india.blogspot.com/
http://jaipurguiadeviajes.blogspot.com/
http://jaipurrajasthanindia.blogspot.com/
http://travelguiderajasthan.blogspot.com/
http://travelguiderajasthan.blogspot.com/
http://wildlifeindiatravel.blogspot.com/
http://indiantravelguideindia.blogspot.com/
http://indianhotelsindia.blogspot.com/
http://rajasthantravelsguide.blogspot.com/
http://pushkartravels.blogspot.com/
http://indiatravelsguide.blogspot.com/
http://goaguidedevoyage.blogspot.com/
http://goatravelsguide.blogspot.com/
http://indiaguadeviajes.blogspot.com/
http://htelseninde.blogspot.com/
http://indienguidedevoyage.blogspot.com/
http://indianhillstationsindiatravel.blogspot.com/
http://jaipurtravelguiderajasthan.blogspot.com/
http://hillstationinindia.blogspot.com/
http://jaipurcarrentals.blogspot.com/
http://indiabudgettourtravelpackage.blogspot.com/
http://romanticrajasthanhoneymoontour.blogspot.com/
http://indianadventuretourpackages.blogspot.com/
http://rajasthantraintourpackage.blogspot.com/
http://jaipurinformationguide.blogspot.com/
http://rajasthanculturaltourpackages.blogspot.com/
http://uttaranchaltourpackages.blogspot.com/
http://luxurytourspackages.blogspot.com/
http://indiahimalayatourtravelpackages.blogspot.com/
http://eastindiatravelpackages.blogspot.com/
http://indiahillstationstravelpackages.blogspot.com/
http://indiatravelpackages.blogspot.com/
http://westindiatourpackages.blogspot.com/
http://lehladakhtourpackages.blogspot.com/
http://indiabudgettourtravelpackage.blogspot.com/
http://romanticrajasthanhoneymoontour.blogspot.com/
http://worldtravelsguide.blogspot.com/
http://jaipursilverjewellery.com/
http://www.jaipurhandicrafts.com/