Closed will-scc closed 1 year ago
UpdateApp will call the standard Squirrel hooks (which execute your app with the "updated" or "obsoleted" command line arguments. Make sure you are calling SquirrelAwareApp.HandleEvents()
at the start of your application (per the documentation in the readme)
I was migrating from Squirrel.Windows and thought those steps were optional if you wanted to do something different than the default behaviour - I see that isn't the case now.
Thanks for the nudge. :)
If you are using v2, this is optional and functions the same way as Squirrel.WIndows. If you mark your exe as squirrel aware the hooks run, otherwise no. In v3 this is no longer optional.
When my application updates, a new instance of the application is opened when
UpdateApp()
is called.If I close this second instance it will cause the first to get stuck (maybe some silent exception?) and trying to close it gets the "Please wait until application has finished updating message" and can only be killed via Task Manager. Note: I'm actually not clear whether it's closing the first or second instance that causes the problem, it's a bit hard to tell the difference, but I close the one which isn't currently doing the update (which is shown in the app before UpdateApp is called).
There is no log file created in the
SquirrelClowdTemp
folder.The
Squirrel-ProcessStart.log
file looks like this:My update logic, looks like this (some UI-related logic removed for brevity):