Board index » cppbuilder » Upgrading an application from within
Paul Dowd
![]() CBuilder Developer |
Paul Dowd
![]() CBuilder Developer |
Upgrading an application from within2005-07-15 11:01:48 PM cppbuilder57 Hi, I want to be able to replace an application's .exe file from within the application in response to a user action. As this cannot be done whilst the application is still running, how can I make it start a batch file (or even another exe) after terminating? Paul |
Rob
![]() CBuilder Developer |
2005-07-15 11:13:00 PM
Re:Upgrading an application from within
Paul Dowd wrote:
QuoteHi, information on how to do this. When Upgrader.exe starts, wait until Application.exe terminates. You can define various ways of achieving this, but the simplest is probably for Upgrader.exe to continually attempt to overwrite Application.exe until it succeeds. |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-07-16 12:40:18 AM
Re:Upgrading an application from within
"Rob" < XXXX@XXXXX.COM >wrote in message
QuoteWhen Upgrader.exe starts, wait until Application.exe terminates. OpenProcess() and WaitForSingleObject() to wait for Application.exe to terminate, and then overwrite the file as needed. Gambit {smallsort} |