Open
Description
When there is an update available and you call UpdateManager.RestartApp my app crashes to classical WIN dialog [app stopped working with close button]
I copied parts of the code and it crashes on Environment.Exit(0) line in update manager (line 202)
When you try exit with Application.Current.Shutdown() (WPF stuff) you it is totally correct end and everything works.
I dont even know how to start debugging whats wrong with
Environment.Exit(0)
and whats going on.
As a workaround i can try using RestartAppWhenExited (which btw duplicate partially code from RestartApp) and call the restart myself.