Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updated my app.exe

Status
Not open for further replies.

ron9999

Programmer
Feb 14, 2003
89
AT
Hi All,
I try to let the user updated theapp.exe automatically.
In the app.exe I have a form "updated" where he can download a file app.zip from our webserver.
The app.zip will be downloadet via ftp and then unziped in a tempdir -that works-.
Now I need to rename the old app.exe to app.001 and copy the new app.exe from tempdir to the appdir.

I thought to show the user a message with "You have to rerun the program ...."

but how can I do this job? To I need a script or a renameandcopy.exe

TIA for any help
Ronald Weinrich
 
Check out the RENAME command in VFP. It will not only rename your exe but also move that file from the temp folder for you. As for the unzipping of the file first, if you haven't got that part worked out check out the FAQ section of this forum and look for SAWZIP.

Slighthaze = NULL
craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Really, you need two programs:
1) A loader
2) the real program (which can be an EXE or an APP)

The user should always use the same loader. The loader looks for updates, if there is one, it downloads it (or if the user previously downloaded the update inside your main app, the loader should find it; perhaps right next to the main app, but with a different name).

The Loader can then replace the Main App with the updated copy (or not, if no updated copy is available), then The Loader Launches the main app.
 
that's it wgcs, I just read Rick Strahl's "Automatic Application Updates over the Web"
the way how he is doing it: he has a class which shutdown the app.exe launch a runupdate app and do all the job.
which is better?
make a startup or Rick Strahl's?
Ron
 
it's cool Mike, now I have to make the decision.
Thank you
Ronald
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top