Skip to content

What is the proper way to apply the update "gracefully"? #96

Answered by dennisvang
Eoic asked this question in Q&A
Discussion options

You must be logged in to vote
1. Check for updates and download if one is available.

Basically do what you're doing in your example above.

2. Show update download progress to the user and apply the update without any further user interaction.

The skip_confirmation=False takes care fo the user interaction in the console. If you also want to prevent the console window from appearing, have a look at the process_creation_flags arg, as described in #90.

That is, assuming you're on Windows.

3. Re-open the application when the update is applied.

There's a batch_template hook that allows you to provide a custom batch script. Have a look at this discussion for details.

On macOS the app is already restarted out-of-the-…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Eoic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants