在使用 WiX 进行应用程序重大升级时,从 Windows 7 任务栏中删除固定的应用程序图标
删除随 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该更改策略:您需要设置
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.