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