As a Notepad++ fan, I have seen that when there is a new update available, the following happens:
- Notepad++ tells you that there is an update
- When you click "Okay, let's update", it connects to the server
- it downloads the update file
- Notepad++ is closed and update file starts to run
- UAC asks you if you want to run the file
- When yes, it installs the update
- You are asked to re-run Notepad++
I want to build this functionality in my .NET desktop application. What I don't know is after the file is downloaded:
- how will my application tell the OS to run the update file?
- my application does not have permissions to install files on the computer. How will it bypass that?
- how will my application gets closed because during the update process, current application needs to be changed?