I have a self updating standalone application in windows. The current update process goes as:
- Main app downloads file from server and save it to disk with a temporary name.
- Main app executes a secondary app with parameters.
- Main app exits.
- Secondary app renames temporary file to overwrite main app.exe.
- Secondary app executes main app.
- Secondary app exits.
The above works. But I'm wondering if its possible to do this without using a secondary app? Particularly with Golang.