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安装的WPF应用程序后,之前固定到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?
在使用WiX安装程序进行应用程序主要升级时,是否有可能删除或重新激活应用程序的图标(固定到Windows 7任务栏)?
1 个解决方案
#1
4
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.
您应该更改策略:您需要在快捷方式上设置AppUserModelID。升级期间,此属性的值不应更改。然后shell,Windows任务栏,将知道更新其固定的快捷方式。
You can read more on shortcut properties in Windows 7 Taskbar support with the MsiShortcutProperty
table.
您可以使用MsiShortcutProperty表在Windows 7任务栏支持中阅读有关快捷方式属性的更多信息。
There's also a sample code in WiX which shows how to set shortcut property.
WiX中还有一个示例代码,其中显示了如何设置快捷方式属性。
#1
4
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.
您应该更改策略:您需要在快捷方式上设置AppUserModelID。升级期间,此属性的值不应更改。然后shell,Windows任务栏,将知道更新其固定的快捷方式。
You can read more on shortcut properties in Windows 7 Taskbar support with the MsiShortcutProperty
table.
您可以使用MsiShortcutProperty表在Windows 7任务栏支持中阅读有关快捷方式属性的更多信息。
There's also a sample code in WiX which shows how to set shortcut property.
WiX中还有一个示例代码,其中显示了如何设置快捷方式属性。