ravibpatel/AutoUpdater.NET

Not able to update new version

phuocminh6464 opened this issue · 9 comments

Hi everyone, I have a .NET 7 WPF App and using Setup project to build .msi installer for first setup. Then I create .zip file for automatic update system. I tried to use AutoUpdater.NET but get this error:
image

Another machine show another error message but I try to close app Application.Current.Shutdown(); in CheckForUpdateEvent
image

Anyone can advise me?

You should use msi file directly without zipping it. Zip file should only be used if you are zipping application files directly and not the setup file.

You should use msi file directly without zipping it.

I only use .msi file to install app into Disk C. When need to update, I will publish app to a folder and zipping all files directly there then update the path to xml file.

Update status:
With the message "App is still opening", Auto update works if I close app and dialogs of AutoUpdater.Net then allow to run again.
But I still don't know the reason of "Process is exited" message

Process is exited must be happening due to unhandled exception. I fixed it in latest commit. Can you try it from here by manually referencing the DLL?

Thanks @ravibpatel. I will try it and post the result here.
But sometimes I get the message "App is still opening" again, at that time I check the task manger so carefully and I'm definitely that there is no process of current app is running. Maybe AutoUpdater.NET run while the app hasn't shut down completely yet? Is there any log of AutoUpdater.NET to check issues when the current app closed?

ZipExtractor creates log, but AutoUpdater.NET doesn't create any logs. You will still get more info in ZipExtractor logs. It must be in the temp folder where it is extracted to update the app.

If you are not handling exit event, then you should also try to do that to cleanly exit the application. When you handle this event, AutoUpdater.NET will use the code inside it to close the app.

If you are not handling exit event, then you should also try to do that to cleanly exit the application.

Thanks @ravibpatel , let me try it

Can you try it from here by manually referencing the DLL?

Hi @ravibpatel , the DLL you give me works now. Can you update this version on Nuget?

I already pushed it to NuGet. You can download latest version v1.9.0.