Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing exe then copying a new version over it
Message
 
 
À
19/01/2012 11:33:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01533292
Message ID:
01533313
Vues:
48
Yes, okay I see where you're coming from.

I have got caught up in doing it the same way that the UP2D8 program works.

1. Shortcut to start program calls update program instead, this then looks for updated files, and downloads them if required

If that includes updater program then restarts.

2. When all updates downloaded it then starts the Main program.

Think your way will work much better, IE main program checks for updates 1st.

Needs some thought.

Thanks again





>>Hi Nicholas
>>
>>I'm trying to write a simple program updater that goes through updates and copies them as needed. UPDATER.EXE that calls
>>say MAINAPPLICATION.EXE after copying updates.
>>
>>BUT I realised that I need to be clever and maybe sometimes update the UPDATER.EXE itself as well as my Main App.
>
>
>
>
>That shouldn't be that difficult - but will take some time to write and test
>
>You main.exe checks for updates and if necessary downloads the updater.exe (if not pesent or newer version)
>It then starts the updater.exe with a couple arguments
>
>- the url of main.exe to download
>- command line to start you main.exe after download
>- the place where to put the downloaded main.exe
>
>After launching the updater.exe, the main.exe quits
>
>The updater.exe is a small program that downloads the new main.exe, calculates a checksum of the downloaded main.exe and compares that to the checksum stored on the server - may need to redownload
>
>The downloader shows a form with a couple of buttons
>- download
>- go back to main.exe
>
>after successful download moves the downloaded main.exe to where it should be
>Then restarts main.exe (with arguments if necessary)
>and quits
>
>
>>
>>>>Hi
>>>>
>>>>I know how to run a shortcut from VFP, but now I need to QUIT my exe, copy a new EXE over the top of it and
>>>>restart the original shortcut that ran my Foxpro EXE in the 1st place.
>>>>
>>>>TAI
>>>
>>>I think you'll need to wrap your exe in a launcher That way you can control what happens when you exit it (you'll still be in the launcher) and choose to overwrite the old exe and relaunch the new version.
Rob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform