Suggestions for replacing the current exe
===

I need to do a quick and dirty way of upgrading my application.

Currently I have an exe per every release.

If exe is wrong i flash a message "relase X found on db, you are using exe for release Y, please download the correct vetsion".

I have every exe at a fixed addresss, like:
`http://myip.com/exes/N/Project.exe` (where N is the releease)

So my idea was instead of the message above i would prompt the user "the correct exe will be downloaded, press ok to continue".

my idea is after OK:

1) Run with `ShellExecute` another exe (let's call id Update.exe) that takes care of downlaod and replace (this exe could be stored in exe resources)

2) Close the application

2) Update.exe will download the correct exe from internet and save it to a temp folder

4) Update.exe will delete Project.exe and replace it with the downloaded one

5) Update.exe will run the nwew Project.exe

So the corret exe will be run and the user will have the new exe in the same location as the old exe. This would be a non hortodox upgrade (not using Windos update, but believe me I need this. I don't ue WIndows update).

Could you comment on this approach? Or suggest a similar trick?