 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Salvador Gonzalez Guest
|
Posted: Wed Nov 12, 2003 6:59 am Post subject: Update a running application |
|
|
What's best way to change a running application ? I mean, how to
change the running .exe application.
Thanks.
|
|
| Back to top |
|
 |
Koms Bomb Guest
|
Posted: Wed Nov 12, 2003 9:07 am Post subject: Re: Update a running application |
|
|
| Quote: | What's best way to change a running application ? I mean, how to
change the running .exe application.
|
What do you want to do? Code a virus?
There is no official method to modify the running exe file, so you can't
do so except you dig deep to the OS kernel to find how it prevent the
running
exe file from modifying.
There are some other alternate method,
1, Write something to the registry, then make Windows replace the exe file
with a newer version when it startup next time.
2, Use MoveFileEx with MOVEFILE_DELAY_UNTIL_REBOOT flag.
--
Koms Bomb
*****Pardon my poor English*****
---------------------
My TASM homepage, resource for assembly. Tools, articles, links.
http://komsbomb.ols-lab.com
|
|
| Back to top |
|
 |
Kurt Barthelmess Guest
|
Posted: Wed Nov 12, 2003 1:02 pm Post subject: Re: Update a running application |
|
|
Salvador Gonzalez <ctc07 (AT) correo (DOT) cajacanarias.es> wrote:
| Quote: | What's best way to change a running application ? I mean, how to
change the running .exe application.
|
As Koms wrote, Windows generally does not allow modification of an
exe while in use. What specifically did you need to change?
Good luck.
Kurt
|
|
| Back to top |
|
 |
Andrew Guest
|
Posted: Fri Dec 05, 2003 9:45 am Post subject: Re: Update a running application |
|
|
You cannot change the actual exe that is running - I had an app that
when it ran I wanted it to check a specific location on the network,
and if a newer version was there, update itself. I did not want the
users to run it from the network, as it was actually timesheet
software, with discrete databases on each users computer.
The only way I worked out how to do that was to run my app from within
another app. IE program "runme1st.exe" did nothing but start itself,
then run program "runme2nd.exe". But before it ran the second app, it
checked the location on the network for a newer version, and if it was
there replaced the "runme2nd.exe" app on the local machine, then ran
it. After the user closed "runme2nd.exe" the original app would close
automatically, and the user was non the wiser as to what was going on
behind the scenes.
I hope that helps
On 11 Nov 2003 23:59:36 -0700, Salvador Gonzalez
<ctc07 (AT) correo (DOT) cajacanarias.es> wrote:
| Quote: |
What's best way to change a running application ? I mean, how to
change the running .exe application.
Thanks.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|