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

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

问题描述

在安装或重大升级期间,如果用户已将应用程序固定到其任务栏,则在安装完成后,将从 \ AppData \ Roaming \ Microsoft \ Internet Explorer \ Quick中删除任务栏快捷方式Launch \ User Pinned \ TaskBar 和空白文件图标(请参见下面的图像链接)留在其位置.单击该图标将提示用户删除,因为它没有针对任何内容.

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\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar 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天全站免登陆