private async Task RemoveClickOnceShortcuts() { this.Log().Info("Removing ClickOnce shortcuts"); UninstallInfo info = await Task.Run(() => UninstallInfo.Find(this.clickOnceAppName)); if (info == null) { this.Log().Info("Couldn't find the ClickOnce deployment, bailing..."); return; } var remover = new RemoveStartMenuEntry(info); try { await Task.Run(() => { remover.Prepare(); remover.Execute(); }); } catch (Exception ex) { this.Log().ErrorException("Failed to remove ClickOnce shortcuts", ex); return; } this.Log().Info("Removed ClickOnce shortcuts"); }