Wix - 安装时不要删除固定的任务栏 [英] Wix - Do Not Remove Pinned Taskbar on Install

查看:24
本文介绍了Wix - 安装时不要删除固定的任务栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装或主要升级期间,如果用户已将应用程序固定到其任务栏,则安装完成后,任务栏快捷方式将从 %AppData%RoamingMicrosoftInternet Explorer 中删除Quick LaunchUser PinnedTaskBar 和一个空白文件图标(参见下面的图片链接)留在原处.

During an installation or major upgrade, if a user has pinned the application to their task bar, then after the installation has completed, the task bar shortcut is removed from %AppData%RoamingMicrosoftInternet ExplorerQuick LaunchUser PinnedTaskBar and a blank-file icon (see image link below) is left in its place.

单击该图标将提示用户删除,因为它不针对任何对象.

Clicking the icon will prompt the user to delete as it doesn't target anything.


(镜像:http://i.stack.imgur.com/kz1zW.png)

我希望在安装或运行重大升级时完全不删除任务栏快捷方式.我们每周都会推出更新,如果任务栏快捷方式在每次更新期间都中断,这可能会令人沮丧.

I would like to make it such that the taskbar shortcut is not removed at all when installing or running a major upgrade. We push out updates on a weekly basis and it can be frustrating if the taskbar shortcut breaks during every update.

这可能吗?
我已经阅读了关于修改 RemoveExistingProducts 的值(即从 InstallValidate 更改为 InstallFinalize),但我不确定这是否可行.

Is this possible?
I've read about modifying the value for RemoveExistingProducts (i.e. changing from InstallValidate to InstallFinalize), but I'm unsure if this will be viable.

推荐答案

您可以通过禁用标准 RemoveShortcuts 来避免自定义操作,如下所示:

You can avoid custom actions by disabling the standard RemoveShortcuts as follows:

<InstallExecuteSequence>
  <RemoveShortcuts>Installed AND NOT UPGRADINGPRODUCTCODE</RemoveShortcuts>
</InstallExecuteSequence>

这将禁用删除快捷方式,但卸载时除外.

This disables removing shortcuts except on uninstall.

这篇关于Wix - 安装时不要删除固定的任务栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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