使用WiX从Windows 7任务栏中的应用程序主要升级中删除固定的应用程序图标 [英] Removing a pinned app's icon from the Windows 7 taskbar on the application's major upgrade with WiX

查看:90
本文介绍了使用WiX从Windows 7任务栏中的应用程序主要升级中删除固定的应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在删除与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?

推荐答案

您应该更改策略:您需要设置

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.

WiX中还有一个示例代码,显示了

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

这篇关于使用WiX从Windows 7任务栏中的应用程序主要升级中删除固定的应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆