Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Overwriting locked executable files Posted by noliver80 on 2 Jul 2002 at 12:33 PM
I am working on a Win app that needs to be able to update itself remotely. Once I have a new version of the executable downloaded to a temp file name I need to be able to replace the old version with the new version. The problem is that I am not able to make the switch while the executable is running. Does anybody out there have any experience with this?

Thanks
Report
Re: Overwriting locked executable files Posted by cockx on 2 Jul 2002 at 4:52 PM
: I am working on a Win app that needs to be able to update itself remotely. Once I have a new version of the executable downloaded to a temp file name I need to be able to replace the old version with the new version. The problem is that I am not able to make the switch while the executable is running. Does anybody out there have any experience with this?
:
: Thanks
:
It is just a stupid idea. But can't run an update.exe program that closes the main program and than updates the exe file and runs the main program again and than shutdown the update.exe???
prog.exe-->download: update.exe-->run: update.exe-->close prog.exe
update.exe--> install: new prog.exe-->start prog.exe--> close update.exe
thats the best I can do...





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.