PDA

View Full Version : DataBase Questions



NewsArchive
10-08-1996, 12:00 AM
A have a 16 bit Delphi installation

1. It's unclear to me how my source database gets copied -- how I tell
it where it comes from....and where to go (Target directory -- pun
intended).

2. On the alias, I understand it needs to be added to an existing .cfg
file on the target machine, but...
a. where does it get added on a test run -- into my existing
c:\idapi\... [ is that why I got the message "Failed in Adding Alias
Error #3 -- Initialization Failed"?
b. how do I identify the DB location?

NewsArchive
10-09-1996, 12:00 AM
Randy Blackburn <blackbr@ix.netcom.com> wrote
> A have a 16 bit Delphi installation
> 2. On the alias, I understand it needs to be added to an existing .cfg
> file on the target machine, but...
> a. where does it get added on a test run -- into my existing
> c:\idapi\... [ is that why I got the message "Failed in Adding Alias
> Error #3 -- Initialization Failed"?
> b. how do I identify the DB location?

Here's an article from the Express Knowledge Base which on the
InstallShield web site.

Ritesh

=====================================================================
Troubleshooting: A "Failed in Adding Alias - Error #3" Message Is Received
During a 16-bit BDE Installation.
=====================================================================

This document relates to the following InstallShield Express product(s):
Professional
Target Platform(s): All Platforms

----------------------------------------------------------------------------
---------------------------------------------
ISSUE:
----------------------------------------------------------------------------
---------------------------------------------
A "Failed in adding alias - error #3" message is received during a 16-bit
BDE installation.

----------------------------------------------------------------------------
---------------------------------------------
DISCUSSION:
----------------------------------------------------------------------------
---------------------------------------------
This error message will be displayed if your setup attempts to install an
alias that already exists on the target machine's configuration file. Since
16-bit BDE aliases cannot be overwritten, the parameters of any existing
BDE alias will be maintained. Clicking the OK button in this error message
box does not terminate the setup.

This message box is displayed to inform the user of the following:

o The alias cannot be added to the existing configuration file.
o The installed application may not function correctly if it relies on an
updated version of this alias.

----------------------------------------------------------------------------
---------------------------------------------
Article Number: X1059
Date Published: 08/02/96
Date Last Modified: 08/02/96
The information provided in the InstallShield Express Knowledge Base is
subject to change without notice and is provided "as is," without warranty
of any kind. InstallShield Corporation disclaims all warranties, either
express or implied, including the warranties of merchantability and fitness
for a particular purpose. In no event shall InstallShield or its suppliers
be liable for any damages whatsoever, including direct, indirect,
incidental, consequential, loss of business profits or special damages,
even if InstallShield Corp. or its suppliers have been advised of the
possibility of such damages.

NewsArchive
10-16-1996, 12:00 AM
Randy Blackburn <blackbr@ix.netcom.com> wrote in article
<3259FCA8.3292@ix.netcom.com>...
> A have a 16 bit Delphi installation
>
> 1. It's unclear to me how my source database gets copied -- how I tell
> it where it comes from....and where to go (Target directory -- pun
> intended).

Target Dir could be any dir u wish to install the database to, your alias
takes care
of the delphi app looking for the database.
You may define a group
[Data Files] TargetLoc <INSTALLDIR>\Data or <WINDISK>\MyApp\DataFile


>
> 2. On the alias, I understand it needs to be added to an existing .cfg
> file on the target machine, but...
> a. where does it get added on a test run -- into my existing
> c:\idapi\... [ is that why I got the message "Failed in Adding Alias
> Error #3 -- Initialization Failed"?

This is fixed in the latest version.


> b. how do I identify the DB location?
>
>
>

When defining your alias be sure its path is one of the aboves u have
choosen
for its group. Our KB article explains this.
e.g.
<INSTALLDIR>\Data or <WINDISK>\MyApp\DataFile

NewsArchive
10-16-1996, 12:00 AM
Sanjay Shroff wrote:
> Randy Blackburn <blackbr@ix.netcom.com> wrote...
> > [SNIP, SNIP]
> > 2. On the alias, I understand it needs to be added to an existing .cfg
> > file on the target machine, but...
> > a. where does it get added on a test run -- into my existing
> > c:\idapi\... [ is that why I got the message "Failed in Adding Alias
> > Error #3 -- Initialization Failed"?
>
> This is fixed in the latest version.

You've mentioned a few things that have been "fixed in the latest
version" of ISX Pro. Which version is that? I am very interested in
losing the Error #3 feature.

Thanks,

Todd Hale
halet@cs.byu.edu

NewsArchive
10-21-1996, 12:00 AM
Todd & Shelley Hale <halet@cs.byu.edu> wrote
> You've mentioned a few things that have been "fixed in the latest
> version" of ISX Pro. Which version is that? I am very interested in
> losing the Error #3 feature.
>

IS Express Pro 1.1

Ritesh

NewsArchive
07-17-2000, 12:00 AM
Thanks Alan, I just got the same answer from Installshield themselves. Seems
a bit of a dumb thing to remove, any ideas why?

Alan Eidson <alan.eidson@dempseyfilm.com> wrote in message
news:396f5067.0@208.30.171.38...
> During the media build, ISX3 told me that <DATABASEDIR> was no longer
> supported.
> ;-(
> Mark Tonks <mark@godata.demon.co.uk> wrote in message
> news:396c793f.0@208.30.171.38...
> > I have just upgraded from ISX 2.12 to ISX 3.0.
> >
> > In the earlier version, there was an option to specify an additional
> dialog
> > box to allow the user to enter a path to the database of an install.
This
> > would result in an environment variable called <DATABASEDIR> being
> > available.
> >
> > I used this lots to perform client/server installs of my company's
> software.
> >
> > To my horror, I find that either:
> > a) This option is not available in version 3.0
> > or...
> > b) This option is so well hidden in version 3.0 that I cannot find it.
> >
> > Please someone, make me look dumb and tell me what to do to turn this
> option
> > on. If this option is not available, I may as well throw version 3.0
away,
> > because it is no use to me whatsoever!
> >
> > Cheers,
> >
> > Mark T
> >
> >
> >
>
>

NewsArchive
07-17-2000, 12:00 AM
My guess is that type of operation would be easier served in the Custom
Actions. Easier for them... that is.

Mark Tonks <mark@godata.demon.co.uk> wrote in message
news:39732805.0@208.30.171.38...
> Thanks Alan, I just got the same answer from Installshield themselves.
Seems
> a bit of a dumb thing to remove, any ideas why?
>
> Alan Eidson <alan.eidson@dempseyfilm.com> wrote in message
> news:396f5067.0@208.30.171.38...
> > During the media build, ISX3 told me that <DATABASEDIR> was no longer
> > supported.
> > ;-(
> > Mark Tonks <mark@godata.demon.co.uk> wrote in message
> > news:396c793f.0@208.30.171.38...
> > > I have just upgraded from ISX 2.12 to ISX 3.0.
> > >
> > > In the earlier version, there was an option to specify an additional
> > dialog
> > > box to allow the user to enter a path to the database of an install.
> This
> > > would result in an environment variable called <DATABASEDIR> being
> > > available.
> > >
> > > I used this lots to perform client/server installs of my company's
> > software.
> > >
> > > To my horror, I find that either:
> > > a) This option is not available in version 3.0
> > > or...
> > > b) This option is so well hidden in version 3.0 that I cannot find it.
> > >
> > > Please someone, make me look dumb and tell me what to do to turn this
> > option
> > > on. If this option is not available, I may as well throw version 3.0
> away,
> > > because it is no use to me whatsoever!
> > >
> > > Cheers,
> > >
> > > Mark T
> > >
> > >
> > >
> >
> >
>
>

NewsArchive
01-02-2001, 01:00 AM
Ok, great, thanx! That answered my question, but I still have another one
about DATABASEDIR...

That works great for the install, but what about after the install is done?
Does it save the location that the user selected somewhere in the registry?
I looked, but couldn't find it anywhere. I need to know what location they
selected so I can use that location in my program to connect to the
databases within. Thanx for any help!

--
-Erik Porter
Software Applications Developer
Thunderbird Products
http://www.formulaboats.com/

"Chandima Rajakaruna" <no reply@installshield.com> wrote in message
news:3a52315a$1@12.41.20.38...
> DATABASEDIR is very similar to INSTALLDIR. Both of these are properties
that
> you can give default values to in the General Information view. These are
> actually like variables. If the user changes the destination when he is
> installing these variables will hold the new value of where it was
entered.
>
> So for example if you want to create a shortcut (or database connection or
> any connection within Express) to a file in DATABASEDIR, select the target
> as DATABASEDIR\FileName. This way, no matter where the user chooses to put
> his databases, your shortcut will always point at the right file (and
> destination)
>
> "Erik Porter" <erikp@formulaboats.com> wrote in message
> news:3a522fdf$1@12.41.20.38...
> > Ok, I have my install using the Database Dialog so the user can choose a
> > location for the databases to go in my program. That's a great add-on
and
> I
> > love it. However, I can't figure out how to use it. I'm kind of new to
> > Installshield Express and I can't figure out how to use what location
they
> > select. I need to know the location that the user selected so my
program
> > can open it's connection to the databases in that directory. Any help
> would
> > be greatly appreciated, thanx! ;-}
> > --
> > -Erik Porter
> > Software Applications Developer
> > Thunderbird Products
> > http://www.formulaboats.com/
> >
> >
>
>

NewsArchive
01-02-2001, 01:00 AM
Go to the Registry View. Create key in the registry at a place of your
choice. Now specify the value of the key as [DATABASEDIR]

Once installed the value of DATABASEDIR (even when a user changes it) will
be stored in the registry where you specified it.

"Erik Porter" <erikp@formulaboats.com> wrote in message
news:3a523510$1@12.41.20.38...
> Ok, great, thanx! That answered my question, but I still have another one
> about DATABASEDIR...
>
> That works great for the install, but what about after the install is
done?
> Does it save the location that the user selected somewhere in the
registry?
> I looked, but couldn't find it anywhere. I need to know what location
they
> selected so I can use that location in my program to connect to the
> databases within. Thanx for any help!
>
> --
> -Erik Porter
> Software Applications Developer
> Thunderbird Products
> http://www.formulaboats.com/
>
> "Chandima Rajakaruna" <no reply@installshield.com> wrote in message
> news:3a52315a$1@12.41.20.38...
> > DATABASEDIR is very similar to INSTALLDIR. Both of these are properties
> that
> > you can give default values to in the General Information view. These
are
> > actually like variables. If the user changes the destination when he is
> > installing these variables will hold the new value of where it was
> entered.
> >
> > So for example if you want to create a shortcut (or database connection
or
> > any connection within Express) to a file in DATABASEDIR, select the
target
> > as DATABASEDIR\FileName. This way, no matter where the user chooses to
put
> > his databases, your shortcut will always point at the right file (and
> > destination)
> >
> > "Erik Porter" <erikp@formulaboats.com> wrote in message
> > news:3a522fdf$1@12.41.20.38...
> > > Ok, I have my install using the Database Dialog so the user can choose
a
> > > location for the databases to go in my program. That's a great add-on
> and
> > I
> > > love it. However, I can't figure out how to use it. I'm kind of new
to
> > > Installshield Express and I can't figure out how to use what location
> they
> > > select. I need to know the location that the user selected so my
> program
> > > can open it's connection to the databases in that directory. Any help
> > would
> > > be greatly appreciated, thanx! ;-}
> > > --
> > > -Erik Porter
> > > Software Applications Developer
> > > Thunderbird Products
> > > http://www.formulaboats.com/
> > >
> > >
> >
> >
>
>

NewsArchive
01-02-2001, 01:00 AM
Ok, great, thanx! That answered my question, but I still have another one
about DATABASEDIR...

That works great for the install, but what about after the install is done?
Does it save the location that the user selected somewhere in the registry?
I looked, but couldn't find it anywhere. I need to know what location they
selected so I can use that location in my program to connect to the
databases within. Thanx for any help!

--
-Erik Porter
Software Applications Developer
Thunderbird Products
http://www.formulaboats.com/

"Chandima Rajakaruna" <no reply@installshield.com> wrote in message
news:3a52315a$1@12.41.20.38...
> DATABASEDIR is very similar to INSTALLDIR. Both of these are properties
that
> you can give default values to in the General Information view. These are
> actually like variables. If the user changes the destination when he is
> installing these variables will hold the new value of where it was
entered.
>
> So for example if you want to create a shortcut (or database connection or
> any connection within Express) to a file in DATABASEDIR, select the target
> as DATABASEDIR\FileName. This way, no matter where the user chooses to put
> his databases, your shortcut will always point at the right file (and
> destination)
>
> "Erik Porter" <erikp@formulaboats.com> wrote in message
> news:3a522fdf$1@12.41.20.38...
> > Ok, I have my install using the Database Dialog so the user can choose a
> > location for the databases to go in my program. That's a great add-on
and
> I
> > love it. However, I can't figure out how to use it. I'm kind of new to
> > Installshield Express and I can't figure out how to use what location
they
> > select. I need to know the location that the user selected so my
program
> > can open it's connection to the databases in that directory. Any help
> would
> > be greatly appreciated, thanx! ;-}
> > --
> > -Erik Porter
> > Software Applications Developer
> > Thunderbird Products
> > http://www.formulaboats.com/
> >
> >
>
>

NewsArchive
01-02-2001, 01:00 AM
Go to the Registry View. Create key in the registry at a place of your
choice. Now specify the value of the key as [DATABASEDIR]

Once installed the value of DATABASEDIR (even when a user changes it) will
be stored in the registry where you specified it.

"Erik Porter" <erikp@formulaboats.com> wrote in message
news:3a523510$1@12.41.20.38...
> Ok, great, thanx! That answered my question, but I still have another one
> about DATABASEDIR...
>
> That works great for the install, but what about after the install is
done?
> Does it save the location that the user selected somewhere in the
registry?
> I looked, but couldn't find it anywhere. I need to know what location
they
> selected so I can use that location in my program to connect to the
> databases within. Thanx for any help!
>
> --
> -Erik Porter
> Software Applications Developer
> Thunderbird Products
> http://www.formulaboats.com/
>
> "Chandima Rajakaruna" <no reply@installshield.com> wrote in message
> news:3a52315a$1@12.41.20.38...
> > DATABASEDIR is very similar to INSTALLDIR. Both of these are properties
> that
> > you can give default values to in the General Information view. These
are
> > actually like variables. If the user changes the destination when he is
> > installing these variables will hold the new value of where it was
> entered.
> >
> > So for example if you want to create a shortcut (or database connection
or
> > any connection within Express) to a file in DATABASEDIR, select the
target
> > as DATABASEDIR\FileName. This way, no matter where the user chooses to
put
> > his databases, your shortcut will always point at the right file (and
> > destination)
> >
> > "Erik Porter" <erikp@formulaboats.com> wrote in message
> > news:3a522fdf$1@12.41.20.38...
> > > Ok, I have my install using the Database Dialog so the user can choose
a
> > > location for the databases to go in my program. That's a great add-on
> and
> > I
> > > love it. However, I can't figure out how to use it. I'm kind of new
to
> > > Installshield Express and I can't figure out how to use what location
> they
> > > select. I need to know the location that the user selected so my
> program
> > > can open it's connection to the databases in that directory. Any help
> > would
> > > be greatly appreciated, thanx! ;-}
> > > --
> > > -Erik Porter
> > > Software Applications Developer
> > > Thunderbird Products
> > > http://www.formulaboats.com/
> > >
> > >
> >
> >
>
>