Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatic distribution of VFP software updates?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00094130
Message ID:
00095577
Views:
20
I'm not sure about your specific question regarding the API. But, if I understand the need correctly, you are wanting to update the EXEs on the user machines when the developer has released a new version.

The way I solved that was to create two VFP programs: a Menu program, and an automatic Menu updating program.

For instance, we have 6 applications running on a WAN, so updating user machines by running around and doing it manually is out of the question. So, the menu program will call any of the apps. It first checks the date and time of the EXE on the local machine, and compares it against the date and time of the EXE on the server. If the server has the newer version, it is copied down to the local machine. At that point, the Menu will start the called program.

The automatic Menu updater is simply a little program that I place in the Startup group in Windows. So, it will run every time a user starts Windows. Of course, the user can click on it at any time to run it. The purpose of the automatic updater is really the same as the Menu, mentioned above. It checks the date and time of the local version, and copies it down from the server to the local machine if it is newer.

Thus, the user will always have the latest versions of the Menu, and all of the 6 applications, but only when they need it. Kind of a Just-In-Time update.

Hope that helps,
-Bri.

>Hi, I have been told that there is a way in Win32API to halt the current program (.exe), copy the updated (.exe) file and restart the program from the new (.exe) file. Is this true? Does anyone know of the API functions involved.
>
>Rgds
>Petras
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform