问题描述
在删除与WiX一起安装的WPF应用程序之后,以前固定在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.
使用WiX安装程序进行应用程序重大升级时,是否可以删除或重新激活固定在Windows 7任务栏上的应用程序图标?
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?
推荐答案
您应该更改策略:您需要设置 AppUserModelID
.此属性的值在升级期间不应更改.然后,外壳程序Windows Taskbar将知道更新其固定的快捷方式.
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.
您可以在 带有MsiShortcutProperty
表 的Windows 7任务栏支持.
You can read more on shortcut properties in Windows 7 Taskbar support with the MsiShortcutProperty
table.
WiX中还有一个示例代码,显示了如何设置快捷方式属性.
There's also a sample code in WiX which shows how to set shortcut property.
这篇关于使用WiX从Windows 7任务栏中的应用程序主要升级中删除固定的应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!