在使用 WiX 进行应用程序重大升级时,从 Windows 7 任务栏中删除固定的应用程序图标

发布于 2024-12-27 10:17:09 字数 218 浏览 3 评论 0原文

删除随 WiX 安装的 WPF 应用程序后,之前固定在 Windows 7 任务栏上的应用程序图标并未自动删除。它仍然是孤立的,需要手动删除。这是一种假定的典型行为吗?
问题是,在应用程序进行重大升级后,固定图标仍然处于非活动状态,需要手动删除并重新固定。这让一些用户感到困惑。

使用 WiX 安装程序进行应用程序重大升级时,是否可以删除或重新激活固定到 Windows 7 任务栏的应用程序图标?

After removing a WPF application which were installed with WiX, the app's icon, previously pinned to the Windows 7 taskbar, have not been removed automatically. It remains orphaned and needs to be removed manually. Is it a supposed, typical behaviour?
The problem is that after a major upgrade of the application, the pinned icon remains inactive and needs to be manually deleted and repinned. It confuses some users.

Is there a possibility to delete or reactivate the app's icon, pinned to the Windows 7 taskbar, when doing an application major upgrade with WiX installer?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

饮湿 2025-01-03 10:17:09

您应该更改策略:您需要设置 AppUserModelID 在您的快捷方式上。该属性的值在升级过程中不应更改。然后 shell、Windows 任务栏就会知道更新其固定的快捷方式。

您可以在 通过 MsiShortcutProperty 表支持 Windows 7 任务栏

WiX 中还有一个示例代码,其中显示 如何设置快捷方式属性

You should rather change strategy: you need to set AppUserModelID on your shortcut. The value of this property should not change during upgrade. Then the shell, Windows Taskbar, will know to update its pinned shortcut.

You can read more on shortcut properties in Windows 7 Taskbar support with the MsiShortcutProperty table.

There's also a sample code in WiX which shows how to set shortcut property.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文