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]
Gene, Please study also the articles which I pointed you in Foxite. https://www.foxite.com/archives/0000469049.htm Regards, Koen
Op ma 7 okt. 2019 om 09:40 schreef juergen@wondzinski.de:
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 notever seen details.
You have an app which might be updated and want to have that happenautomatically.
In my case, it is a VFP .exe, and I wrote a program to handle thatyears ago.
What about if the startup program needs to be updated? Since thereis 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 quitrunning 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]
+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 notever seen details.
You have an app which might be updated and want to have that happenautomatically.
In my case, it is a VFP .exe, and I wrote a program to handle thatyears ago.
What about if the startup program needs to be updated? Since there isa 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 quitrunning 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]
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