NetSparkleUpdater / NetSparkle

NetSparkle is a C# cross-platform software update framework for .NET developers compatible with .NET 4.6.2/.NET 6+, WinForms, WPF, and Avalonia; uses Ed25519 or DSA signatures! View basic usage here in the README or visit our website for code docs.
https://netsparkleupdater.github.io/NetSparkle/
MIT License
585 stars 81 forks source link

Is there a way to automatically run the installer after update download? #539

Closed RyanG2016 closed 6 months ago

RyanG2016 commented 7 months ago

Once the user checks for updates and chooses to update, the update file downloads and they get prompted to install. Is there a way to have the update automatically run after download?

Deadpikle commented 7 months ago

Hi @RyanG2016, there isn't something like a built-in bool for this, but you have a few different options:

Does that help? 😄

RyanG2016 commented 7 months ago

Hi @Deadpikle, It kind of does. I was thinking it might need a code change. All I really want to do though is auto run after the update is downloaded. So currently, the update notes show and the user chooses whether or not to download. That's fine. I just want to skip the last part after it's downloaded and waits for the user to click Install. Is that the same thing you're referring to?

Deadpikle commented 7 months ago

Yup. So the easiest way to do that is probably to hook into the events to auto install and then to update/modify the UI you can hook into the UIFactory ProcessWindowAfterInit handler.

RyanG2016 commented 6 months ago

@Deadpikle We have been able to get this implemented as need per your instruction. Thx