如何在 SendToFolder 中为所有使用 WiX 的用户创建快捷方式?

发布于 2024-08-17 05:07:26 字数 739 浏览 2 评论 0原文

当我尝试在 WiX 中的所有用户的 SendTo 文件夹中创建快捷方式时,收到以下错误:

警告 LGHT1076:ICE91:快捷方式“我的快捷方式名称”将安装到每个用户目录“SendToFolder”中,该目录不会根据 ALLUSERS 值而变化。即使需要每台计算机安装,该文件也不会复制到每个用户的配置文件中。

目前,我正在将快捷方式创建为非广告快捷方式,该快捷方式作为其引用的 File 元素的子元素存在。

有没有办法让所有用户都可以使用此快捷方式?

这篇关于超级用户的文章表示您可以在所有用户中创建 SendToFolder,但我看不到如何从 WiX 中执行此操作。

另一篇文章 建议您可以使用 MSI 的自我修复功能来为所有用户重新安装快捷方式,但除非我误解了,否则您需要使用广告快捷方式,而广告快捷方式不会显示在发送到菜单中。

任何帮助或建议将不胜感激。

When I try to create a shortcut in the SendTo folder for all users in WiX, I receive the following error:

warning LGHT1076 : ICE91: The shortcut 'MY SHORTCUT NAME' will be installed to the per user directory 'SendToFolder' that doesn't vary based on ALLUSERS value. This file won't be copied to each user's profile even if a per machine installation is desired.

At the moment, I'm creating the shortcut as a non-advertised shortcut that exists as a sub-element of the File element that it references.

Is there a way to make this shortcut available for all users?

This article on SuperUser indicates that you can create a SendToFolder in all users, but I can't see how to do that from WiX.

Another article suggests that you can use the self-healing capabilities of MSI to make the shortcut re-install itself for all users, but unless I'm misunderstanding it, you need to use an advertised shortcut, and advertised shortcuts won't show up in the send to menu.

Any help or suggestions would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

未央 2024-08-24 05:07:26

在“所有用户”配置文件中创建“SendTo”文件夹并将链接放入其中没有任何效果(我测试过)。没有任何位置可以为所有用户放置“SendTo”链接。

您可以编写一个自定义操作,将链接复制到每个用户的正确位置,但这不适用于安装软件后创建的用户帐户。

因此,我认为这不能在安装程序中正确完成。我会将处理此问题的逻辑放在应用程序本身中:在启动时进行检查,然后将链接复制到 SendTo 文件夹(如果尚不存在)。

Creating a "SendTo" folder in the "All Users" profile and putting links in it doesn't have any effect (I tested it). There is no location where you can put "SendTo" links for all users.

You could write a custom action which copies the link to the right location for each user, but this won't work for user accounts that are created after your software is installed.

I therefore think that this cannot be done right in the installer. I would put the logic for handling this in the application itself: do a check at start-up, and copy the link to the SendTo folder if it is not yet present.

迷爱 2024-08-24 05:07:26

这对于安装程序来说是不可能的。我最终重新设计了规范,并将链接直接放入上下文菜单中,而不是放在发送到子菜单中。

This is impossible from the installer. I ended up reworking the spec and putting the link directly into the context menu, rather than in send to sub-menu.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文