{"action":"closed","issue":{"url":"https://api.github.com/repos/Squirrel/Squirrel.Windows/issues/534","labels_url":"https://api.github.com/repos/Squirrel/Squirrel.Windows/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/Squirrel/Squirrel.Windows/issues/534/comments","events_url":"https://api.github.com/repos/Squirrel/Squirrel.Windows/issues/534/events","html_url":"https://github.com/Squirrel/Squirrel.Windows/issues/534","id":124061081,"number":534,"title":"VSTO and Squirrel","user":{"login":"aneeff","id":8439500,"avatar_url":"https://avatars.githubusercontent.com/u/8439500?v=3","gravatar_id":"","url":"https://api.github.com/users/aneeff","html_url":"https://github.com/aneeff","followers_url":"https://api.github.com/users/aneeff/followers","following_url":"https://api.github.com/users/aneeff/following{/other_user}","gists_url":"https://api.github.com/users/aneeff/gists{/gist_id}","starred_url":"https://api.github.com/users/aneeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aneeff/subscriptions","organizations_url":"https://api.github.com/users/aneeff/orgs","repos_url":"https://api.github.com/users/aneeff/repos","events_url":"https://api.github.com/users/aneeff/events{/privacy}","received_events_url":"https://api.github.com/users/aneeff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-28T12:25:32Z","updated_at":"2015-12-28T18:56:18Z","closed_at":"2015-12-28T18:56:17Z","body":"Hi,\r\n\r\nI was able to use Squirrel installer with VSTO (I have a library that does all the registry entries for VSTO). basically the commandline install, update all works. but the SquirrelAwareApp events doesnt seems to be working.\r\n\r\nbelow is my code:\r\n\r\n        private void ThisAddIn_Startup(object sender, System.EventArgs e)\r\n        {\r\n            const string updateUrl = \"E:\\vstoupdate\";\r\n            const string ProductName = \"MyRibbon\";\r\n\r\n           //Update and Install\r\n            Task.Run(async () =>\r\n                {\r\n\r\n                    using (var mgr = new UpdateManager(updateUrl, ProductName))\r\n                    {\r\n                        SquirrelAwareApp.HandleEvents(onAppUpdate: v => UpdateRegistry(),\r\n                                                    onInitialInstall: v => UpdateRegistry(),\r\n                                                    onAppUninstall: v => Uninstall());\r\n                        var updateInfo = await mgr.CheckForUpdate();\r\n                        if (updateInfo.CurrentlyInstalledVersion.SHA1 != updateInfo.FutureReleaseEntry.SHA1)\r\n                        {\r\n                           var res= await mgr.UpdateApp();\r\n\r\n                            MessageBox.Show($\"release updated to {res.Version.Version.ToString()}\");\r\n                        }\r\n                        mgr.Dispose();\r\n                    }\r\n                });\r\n\r\n        }\r\n\r\n\r\nThe pacakge doesn't contain an exe though... could that be a problem. i've marked my assembly as SquirrelawareApp too.\r\n\r\n"}}