Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to update new version #688

Closed
phuocminh6464 opened this issue May 30, 2024 · 9 comments
Closed

Not able to update new version #688

phuocminh6464 opened this issue May 30, 2024 · 9 comments

Comments

@phuocminh6464
Copy link

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?

@ravibpatel
Copy link
Owner

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.

@phuocminh6464
Copy link
Author

phuocminh6464 commented May 31, 2024

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

@ravibpatel
Copy link
Owner

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?

@phuocminh6464
Copy link
Author

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?

@ravibpatel
Copy link
Owner

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.

@ravibpatel
Copy link
Owner

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.

@phuocminh6464
Copy link
Author

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

@phuocminh6464
Copy link
Author

phuocminh6464 commented Jun 11, 2024

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?

@ravibpatel
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants