Hi. I'm currently developping an application which will let the user make a software update via the internet. I'm new to this and decided to post here before going the wrong direction.

Actually, in my case, a software update would mean downloading and overwriting the .exe file of my VB application. I guess the code for connecting and downloading from the ftp is already somewhere in these forums, so that ain't the problem.

Of course, you know that I can't overwrite the currently in use executable. What would be the best solution to do this? I thought that I might force the user to re-open the application so the .exe can be overwritten - but how do I do this? Do I have another .exe that is executed when the main application is closed..?

...or am I really going the wrong way?


Thanks for any feedback or suggestions.