Updating running program

  • Thread starter Thread starter joneigel
  • Start date Start date
J

joneigel

Hello group,
this is my auto update procedure:

start program files\prog.exe
check for updates
loading new prog.exe from a webserver in a download directory
start update.exe (command 'Diagnostics.Process.Start') and close
prog.exe (command 'dispose')
update.exe moves the new prog.exe from \download to \program files
->here is the problem! prog.exe is in use!

any ideas?

jo
 
(e-mail address removed) pisze:
Hello group,
this is my auto update procedure:

start program files\prog.exe
check for updates
loading new prog.exe from a webserver in a download directory
start update.exe (command 'Diagnostics.Process.Start') and close
prog.exe (command 'dispose')
update.exe moves the new prog.exe from \download to \program files
->here is the problem! prog.exe is in use!

Try to rename original file.
 
Back
Top