When a user logs into my application, the application checks the database to see if it is the most up-to-date version. Currently, when the app finds that it is NOT the most recent version, it gives the user a message to download the latest, and then exits.
What I would like is for the application to do the download of the latest code for the user (after a confirmation, or maybe even without asking). The challenge is that the application cannot be active at the time the download occurs, or the PBDs and EXE will not be overwritten with the new code. So, I envision something where the application calls out to another process which does the install, and then closes itself so that the current code can be replaced.
Is that the right way to handle this workflow? Or is there something easier to implement to do what I am looking for?