Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking if exists new version of a program
Message
 
 
À
14/03/2023 02:15:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01686359
Message ID:
01686364
Vues:
58
>I'd like to add new funkcionality to my program. When user run program, program check if exists new version (which is saved somewhere on ftp server or something else), and if so, download new version, maybe alter some tables, copy new reports... After that, I need information that user downloaded new version successfuly for my documentation.
>How can I do that?

I do it a little differently. It is not automatic but a user can check if the FTP has a newer version and download it.
Granted nobody ever used this feature; I do it when I connect to their server RDP.
Here is how it works:
I have a simple XML file: version.xml which has the version number. E.g. 6.123.
Whenever I upload the update zip file (e.g. programupdate.zip) to the FTP I also upload the version.xml. So on the FTP their is always programupdate.zip and version.xml
The application has a feature - Check for a new update - which downloads the version.xml and checks the version number in this XML file against the version number in the executable. The feature also allows a user to download the programupdate.zip (in case the newer version on the ftp exists).
As I wrote above, nobody ever uses this feature, only me when check if the customer needs an update.

HTH
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform