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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update *.exe while running - VB6

Status
Not open for further replies.

cj92713696

Programmer
Nov 23, 2000
105
US
I've recently written an app. which runs at all of my company's remote branch offices. I've added an update feature which will download an updated app. *.exe in a seperate directory. (/UPDATE from app.path) Is there a way for me to have this new *.exe overwrite the original *.exe (which is currently running)?

Thanks,
CJ
 
Not as you have stated the question. Windows doesn't want you to overwrite running executables.

A reasonable alternative might be to add a second application... one that would be responsible for overwriting the existing app.

Let's say your app detected an available program update. It could prompt the user to update now or save all work and update when convenient. When the time is right, your app would start the "update" app and immediately terminate. The update app would overwrite your program files, start the updated version of your app and terminate.

Not exactly transparent... but have you ever seen a program revision take place without drawing attention to itself?
VCA.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top