Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

When calling UpdateManager.RestartApp my app crashes

Open MudraMartin opened this issue 9 years ago • 2 comments

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.

MudraMartin avatar May 09 '17 13:05 MudraMartin

The updates are made but my application does not run with the latest version, can you help me please?

mafer31 avatar Nov 29 '18 21:11 mafer31

@LightCZ are you still experiencing this issue with the latest version of Squirrel?

Thieum avatar May 03 '19 16:05 Thieum