ravibpatel / AutoUpdater.NET

AutoUpdater.NET is a class library that allows .NET developers to easily add auto update functionality to their classic desktop application projects.
MIT License
3.09k stars 775 forks source link

How to decide for yourself whether to start #723

Open pdone opened 2 weeks ago

pdone commented 2 weeks ago

https://github.com/ravibpatel/AutoUpdater.NET/blob/f3f1bf2d756e7255c70c7b6f8aac744a0ecf631e/AutoUpdater.NET/DownloadUpdateDialog.cs#L247

ravibpatel commented 2 weeks ago

It launches the installation file for update. If you are using a zip file as an update file, then it will wait for the app to exit before installing the new version. You can handle Application Exit event as shown here to do something before exiting the app for update.

pdone commented 2 weeks ago

Are there plans to implement support for single-EXE programs? When a single EXE program is running, update files can only be downloaded to other directories and cannot replace older versions.

pdone commented 2 weeks ago

Or add a static variable, can you decide whether you need to start the installer after the download is complete?

ravibpatel commented 2 weeks ago

Can you tell me what is your use case exactly?

pdone commented 2 weeks ago

I want to download the update without executing Process.Start(), wait for me to do some processing on the downloaded file, and then decide when to execute Process.Start() ApplicationExitEvent is not enough for this scenario. #722