{"action":"opened","issue":{"url":"https://api.github.com/repos/Squirrel/Squirrel.Windows/issues/910","repository_url":"https://api.github.com/repos/Squirrel/Squirrel.Windows","labels_url":"https://api.github.com/repos/Squirrel/Squirrel.Windows/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/Squirrel/Squirrel.Windows/issues/910/comments","events_url":"https://api.github.com/repos/Squirrel/Squirrel.Windows/issues/910/events","html_url":"https://github.com/Squirrel/Squirrel.Windows/issues/910","id":197803305,"number":910,"title":"Conditional update possible?","user":{"login":"chromworks","id":22225640,"avatar_url":"https://avatars.githubusercontent.com/u/22225640?v=3","gravatar_id":"","url":"https://api.github.com/users/chromworks","html_url":"https://github.com/chromworks","followers_url":"https://api.github.com/users/chromworks/followers","following_url":"https://api.github.com/users/chromworks/following{/other_user}","gists_url":"https://api.github.com/users/chromworks/gists{/gist_id}","starred_url":"https://api.github.com/users/chromworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chromworks/subscriptions","organizations_url":"https://api.github.com/users/chromworks/orgs","repos_url":"https://api.github.com/users/chromworks/repos","events_url":"https://api.github.com/users/chromworks/events{/privacy}","received_events_url":"https://api.github.com/users/chromworks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-28T06:30:23Z","updated_at":"2016-12-28T06:30:23Z","closed_at":null,"body":"Is it possible to compare the latest release version (on GitHub) and the installed version? It seems I got crashes when my installed version is the latest one, and I want to around unnecessary update. Perhaps my implementation is bad. Below is the code. I feel the asynchronous task causes hang quite  inconsistently. Any kind comment from an expert? \r\n\r\n            task = Task.Run(async () => \r\n            {\r\n                try\r\n                {\r\n                    using (var mgr = UpdateManager.GitHubUpdateManager(\"https://github.com/chromworks/IEX_AutoUpdate\"))\r\n                    {\r\n                        await mgr.Result.UpdateApp();\r\n                    }\r\n                }\r\n                catch (Exception ex)\r\n                {\r\n                   MessageBox.Show(ex.ToString());\r\n                }\r\n\r\n                try\r\n                {\r\n                    using (var mgr = new UpdateManager(\"https://github.com/chromworks/IEX_AutoUpdate\"))\r\n                    {\r\n                        SquirrelAwareApp.HandleEvents(\r\n                           onInitialInstall: v => mgr.CreateShortcutForThisExe(),\r\n                           onAppUpdate: v => mgr.CreateShortcutForThisExe(),\r\n                           onAppUninstall: v => mgr.RemoveShortcutForThisExe());\r\n                    }\r\n                }\r\n                catch (Exception ex)\r\n                {\r\n                    MessageBox.Show(ex.ToString());\r\n                }\r\n\r\n            });"}}
{"actor":{"display_login":"chromworks"}}