EXE update

  • Thread starter Thread starter Hilton
  • Start date Start date
H

Hilton

Hi,

Assume the app is ABC.exe. While running ABC.exe, you have (however it got
there) a newer version of the app called XYZ.exe. It it possible to:

1. rename ABC.exe to ABC.old (this is optional, otherwise delete)
2. rename XYZ.exe to ABC.exe
3. run ABC.exe

i.e. it's the usual, how does an app update itself.

One thought would be to have an update.exe do the above steps. So ABC.exe
calls update.exe and dies, then update.exe runs ABC.exe. Thoughts?

Thanks,

Hilton
 
Hilton said:
Hi,

Assume the app is ABC.exe. While running ABC.exe, you have (however it got
there) a newer version of the app called XYZ.exe. It it possible to:

1. rename ABC.exe to ABC.old (this is optional, otherwise delete)
2. rename XYZ.exe to ABC.exe
3. run ABC.exe

i.e. it's the usual, how does an app update itself.

One thought would be to have an update.exe do the above steps. So ABC.exe
calls update.exe and dies, then update.exe runs ABC.exe. Thoughts?

That's basically the way I've done it before - have an external helper
app that can be called to update the running program.

It also might be possible to do this with the command shell. This link:

http://codeguru.com/win32/SelfDel.html

has information about how to write a program that deletes itself, which
is a similar concept. The page is not written for CE, but I know at
least some devices have a shell interpreter available (I remember seeing
one on a CE.NET device we had a while back).

--

..o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.
| Matt Kunze Sometimes there's a point.|
| Build Master Fooly Fool This is not one of those |
| DataSplice Software Developer times. |
=============================================================
 
Back
Top