Blinx123 The best way to do with AJAX and Browser, we upload our php file in the server to check app version, if is newer version, then check it's using windows, mac or Linux... If is window, then use Browser to Invoke download an installer for windows from URL of latest build.
It's pretty simple, isn't?