PDA

View Full Version : How to avoid overwriting user DB files



NewsArchive
10-16-1996, 12:00 AM
Currently, when a user upgrades (re-installs) my Delphi database app,
all of the data files are overwritten, wiping out their database. Are
there some conditional tricks to avoid overwriting the users data? I'm
using Paradox tables, btw.

The one workaround I've come up with is to make sure new installations
have older dates on the data files than previous installations. (I read
in the help file that files that are newer on the user's system will not
be overwritten.)

Any other, better solutions?

Also, anyway to work around the "Failed in Adding Alias Error #3 --
Initialization Failed" message on re-installs?

Todd Hale -> dolt head

() () () () () () () () ()
/[]\ /[]\ /[]\ /[]\ /[]\ /[]\ /[]\ /[]\ /[]\
_.-##..___.##--..__##.---..##_..---##___..-##..___.##--..__##.---..##_.
_.-|//___..|//.___.|//-.___|//--.__|//---._|//.---.|//..---|//_..--|//_
_.---.___.---.___.---.___.---.___.---.___.---.___.---.___.---.___.---._
_.---.__.---.__.---.__.---.__.---.__.---.__.---.__.---.__.---.__.---.__
halet@cs.byu.edu 3D Skiers! http://students.cs.byu.edu/~halet

NewsArchive
02-05-1998, 01:00 AM
We use the following approach:

1. Create a separate group for the data files
2. Set the update option to update w/ newer dates
3. Flag all of the new install data files with a very early date
(1/1/1990)

When the new version installs, only files that don't exist will be created
and nothing will be over written.

Todd & Shelley Hale wrote:

> Currently, when a user upgrades (re-installs) my Delphi database app,
> all of the data files are overwritten, wiping out their database. Are
> there some conditional tricks to avoid overwriting the users data? I'm
> using Paradox tables, btw.
>
> The one workaround I've come up with is to make sure new installations
> have older dates on the data files than previous installations. (I read
> in the help file that files that are newer on the user's system will not
> be overwritten.)
>
> Any other, better solutions?
>
> Also, anyway to work around the "Failed in Adding Alias Error #3 --
> Initialization Failed" message on re-installs?
>
> Todd Hale -> dolt head
>
> () () () () () () () () ()
> /[]\ /[]\ /[]\ /[]\ /[]\ /[]\ /[]\ /[]\ /[]\
> _.-##..___.##--..__##.---..##_..---##___..-##..___.##--..__##.---..##_.
> _.-|//___..|//.___.|//-.___|//--.__|//---._|//.---.|//..---|//_..--|//_
> _.---.___.---.___.---.___.---.___.---.___.---.___.---.___.---.___.---._
> _.---.__.---.__.---.__.---.__.---.__.---.__.---.__.---.__.---.__.---.__
> halet@cs.byu.edu 3D Skiers! http://students.cs.byu.edu/~halet

NewsArchive
11-16-1998, 01:00 AM
Thanks for the tip, but I think I also forget to mention that I've added a
'Trigger Event lefts click on mouse' in the action-field. I've done this to
make sure the demo jumps to the second edit-field after the correct input.
Now the text appears perfectly, but the demo doesn't jump to the next edit
field anymore...
Is there a solution for this ?

Many thanks in advance,
Ronald Tuns

NewsArchive
11-16-1998, 01:00 AM
Hello again Ronald,

Yes! DemoShield can perform multiple actions from just one user event. Go
under the True Actions tab of the first edit field and add a new action just
as you mentioned (Trigger Event of a left mouse click on edit field 2).

Best Regards,

Sheila Wiese
DemoShield Support

rt@quadaut.nl wrote in message <364fe1a1.0@news.installshield.com>...
>Thanks for the tip, but I think I also forget to mention that I've added a
>'Trigger Event lefts click on mouse' in the action-field. I've done this to
>make sure the demo jumps to the second edit-field after the correct input.
>Now the text appears perfectly, but the demo doesn't jump to the next edit
>field anymore...
>Is there a solution for this ?
>
>Many thanks in advance,
> Ronald Tuns
>
>

NewsArchive
11-18-1998, 01:00 AM
Hello once again,
I'm afraid that I still have problems with the second edit field.
I've done the following:
I made two edit fields and two texts. The texts are hidden from the start.
I want text 1 to appear just as the scene starts with a 'random bits
appearing' effect and I want the first edit field to be active immediately.
To achieve this, I've created an event that makes the edit field active just
as the scene starts. Text 1 starts automatically as the scene starts as
well.
So far, everything works perfect.
But after edit field 1 has the correct input, I want to make edit field 2
active and make text 2 appear with a 'random bits appearing' effect.
I've added these actions in the true actions field (in this order):
Go to text 2 in <#current scene>
Trigger event left clicks mouse to edit field 2 in <#current scene>
Now the text appears when I want to, but the input stays at edit field 1.
How to overcome this problem ?

Many thanks,
Ronald Tuns

NewsArchive
11-18-1998, 01:00 AM
Hello again Ronald,

Am I to understand that the cursor is still blinking in Edit Field 1 even
though you have a True Action the sets a Tigger Event of Left Clicks Mouse
on Edit Field 2? This would indeed be a strange behavior.

I have recreated your situation as I understand it in a simple 5.4 demo I
have attached to this post. I did not encounter the problem you describe.
Please make sure to order your actions as you want them to happen even
though the delays between should be minimal.

Hope this helps! If you continue to experience problems with this, please
send me your demo in an email if it is under 5 MB. If more than that,
please let me know and I will provide ftp instructions.

Sincerely,

Sheila Wiese
DemoShield Support


rt@quadaut.nl wrote in message <365282d3.0@news.installshield.com>...
>Hello once again,
>I'm afraid that I still have problems with the second edit field.
>I've done the following:
>I made two edit fields and two texts. The texts are hidden from the start.
>I want text 1 to appear just as the scene starts with a 'random bits
>appearing' effect and I want the first edit field to be active immediately.
>To achieve this, I've created an event that makes the edit field active
just
>as the scene starts. Text 1 starts automatically as the scene starts as
>well.
>So far, everything works perfect.
>But after edit field 1 has the correct input, I want to make edit field 2
>active and make text 2 appear with a 'random bits appearing' effect.
>I've added these actions in the true actions field (in this order):
>Go to text 2 in <#current scene>
>Trigger event left clicks mouse to edit field 2 in <#current scene>
>Now the text appears when I want to, but the input stays at edit field 1.
>How to overcome this problem ?
>
>Many thanks,
>Ronald Tuns
>
>
>
>

NewsArchive
04-30-2001, 12:00 AM
Thanks Kathy !

Vijay


"Kathy Morey" <KMorey@SERmacrosoft.com> wrote in message
news:3aed6487$1@12.41.20.38...
> My suggestion would be to set these files in separate file groups in each
> installation and mark them as "shared". That way the client installation
> will increment the shared count if they're already there from the server,
> and either installation will remove them if it's the last thing to be
> uninstalled.
>
> They will be "re-installed" during the client installation depending on
what
> you have the Overwrite property set to - NEWERVERSION/NEWERDATE will
update
> the count without actually reqriting the files.
>
> HTH
>
> Kathy
>
> "Vijaykumar Aski" <vijayaski@hotmail.com> wrote in message
> news:3aeccc57@12.41.20.38...
> > Hi All,
> > These is my first install shield program and I was stuck on
> couple
> > of things.
> > The App has a "Server installation" and a "client installation", which
> have
> > lots of files in common. So if somebody has installed server on their
> > machine they will have some files on the machine which the client will
> > need...
> >
> > 1. So when I install client I want to see if the files already exist ,
if
> so
> > do not install the common files..else install them
> > 2. Once I do this, if the user decides to uninstall server, then it
should
> > not remove these common files coz client is using them
> > 3.Eventually when the user wants to uninstall the client also, the
clients
> > uninstall program should prompt the user to uninstall the common files,
> > installed by the server.
> >
> > Thanks,
> > Vijay
> >
> >
>
>