Index
2019-10-07 02:40<juergen@wondzinski.de>: AW: VFP App Startup Program
2019-10-07 05:03AndyHC : Re: AW: VFP App Startup Program
2019-10-07 13:15Gene Wirchenko : Re: AW: VFP App Startup Program
Back to top
AW: VFP App Startup Program

Author: <juergen@wondzinski.de>

Posted: 2019-10-07 02:40:10   Link

Hi Gene,

normally your Starter programm just runs the main program, after checking

for updates, and then quits itself. The starter cannot update himself, thus

another program / task has to do this. The easiest way would be to first

install a new main program, which checks the starter for version, and

optionally does the update for the starter program. Thus the two can update

each other :)

wOOdy

-----Ursprüngliche Nachricht-----

Von: ProFox <profox-bounces@leafe.com> Im Auftrag von Gene Wirchenko

Gesendet: Samstag, 5. Oktober 2019 01:03

An: ProFox Email List <profox@leafe.com>

Betreff: VFP App Startup Program

Hello:

I have seen discussions about this at various times, but I have not

ever seen details.

You have an app which might be updated and want to have that happen

automatically.

In my case, it is a VFP .exe, and I wrote a program to handle that

years ago.

What about if the startup program needs to be updated? Since there is

a change (the first since) in that, I wanted to write a version that would

update the update program, too. Somehow, it did not work. And since there

is less debugging information available when debugging a .exe, I ended up

giving up on it after some trouble.

My thought was to have two programs:

cbs2run.exe would check cbs2run2.exe if it needed updating (and maybe

update), check cbs2.exe (the app) if it needed updating (and maybe update),

then run cbs2run2.exe.

cbs2run2.exe would check cbs2run.exe if it needed updating (and maybe

update), then run cbs2.exe.

The reason that I had two programs is so that cbs2run.exe would quit

running and be overwritable. Even inserting a 5-second pause before trying

to overwrite cbs2run.exe in cbs2run2.exe did not work. I got some very

inconsistent and confusing results.

Was I overlooking something? If so, what?

Sincerely,

Gene Wirchenko

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: https://leafe.com/archives

This message: https://leafe.com/archives/byMID/002701d57ce2$72d236d0$5876a470$@wondzinski.de

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2019 <juergen@wondzinski.de>
Back to top
Re: AW: VFP App Startup Program

Author: AndyHC

Posted: 2019-10-07 05:03:15   Link

+1

On 07-Oct-2019 1:10 PM, juergen@wondzinski.de wrote:

> Hi Gene,

>

> normally your Starter programm just runs the main program, after checking

> for updates, and then quits itself. The starter cannot update himself, thus

> another program / task has to do this. The easiest way would be to first

> install a new main program, which checks the starter for version, and

> optionally does the update for the starter program. Thus the two can update

> each other :)

>

> wOOdy

>

>

> -----Ursprüngliche Nachricht-----

> Von: ProFox <profox-bounces@leafe.com> Im Auftrag von Gene Wirchenko

> Gesendet: Samstag, 5. Oktober 2019 01:03

> An: ProFox Email List <profox@leafe.com>

> Betreff: VFP App Startup Program

>

> Hello:

>

> I have seen discussions about this at various times, but I have not

> ever seen details.

>

> You have an app which might be updated and want to have that happen

> automatically.

>

> In my case, it is a VFP .exe, and I wrote a program to handle that

> years ago.

>

> What about if the startup program needs to be updated? Since there is

> a change (the first since) in that, I wanted to write a version that would

> update the update program, too. Somehow, it did not work. And since there

> is less debugging information available when debugging a .exe, I ended up

> giving up on it after some trouble.

>

> My thought was to have two programs:

>

> cbs2run.exe would check cbs2run2.exe if it needed updating (and maybe

> update), check cbs2.exe (the app) if it needed updating (and maybe update),

> then run cbs2run2.exe.

>

> cbs2run2.exe would check cbs2run.exe if it needed updating (and maybe

> update), then run cbs2.exe.

>

> The reason that I had two programs is so that cbs2run.exe would quit

> running and be overwritable. Even inserting a 5-second pause before trying

> to overwrite cbs2run.exe in cbs2run2.exe did not work. I got some very

> inconsistent and confusing results.

>

> Was I overlooking something? If so, what?

>

> Sincerely,

>

> Gene Wirchenko

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: https://leafe.com/archives

This message: https://leafe.com/archives/byMID/fe0140ce-eef2-7efb-9e45-0986916e4d0c@hawthorncottage.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2019 AndyHC
Back to top
Re: AW: VFP App Startup Program

Author: Gene Wirchenko

Posted: 2019-10-07 13:15:58   Link

At 00:40 2019-10-07, <juergen@wondzinski.de> wrote:

>Hi Gene,

>

>normally your Starter programm just runs the main program, after checking

>for updates, and then quits itself. The starter cannot update himself, thus

>another program / task has to do this. The easiest way would be to first

>install a new main program, which checks the starter for version, and

>optionally does the update for the starter program. Thus the two can update

>each other :)

Look at my original post. That is exactly what I was trying to

do with cbs2run.exe and cbs2run2.exe. But there was trouble. I do

not know if I simply missed something or it is not possible in one

execution chain.

Sincerely,

Gene Wirchenko

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: https://leafe.com/archives

This message: https://leafe.com/archives/byMID/

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2019 Gene Wirchenko