I would like to add a self updating feature to my application. E.g. there is a central version number held on the server. When a user opens abc.exe with an old version, abc.exe should update itself with the latest version available on the server.
I know copying files very well, so this is not a problem. More the challenge is to overwrite a file that's in use. Does anyone know how to do this?
Also, I know this is possible with a seperate batch file or updating program, which I would like to avoid.