WIX 使用 wix 添加网站或 URL 位置的快捷方式,并为该快捷方式选择自定义图标

发布于 2024-08-13 09:39:33 字数 204 浏览 3 评论 0原文

我想添加一个具有以下规格的开始菜单组的快捷方式:

  1. 它应该指向一个网站,例如 www.xyz.com
  2. 它应该有一些自定义图标
  3. 我需要向其传递一些参数,例如 www.xyz.com?郎=XXXX。 其中 XXXX 是语言代码,例如 1033、1036 等,它取决于用户为我的应用程序选择的语言。

请帮忙。

I want to add a shortcut to the start menu group with following specifications:

  1. It should point to a website, say www.xyz.com
  2. It should have some custom icon
  3. I need to pass some parameters to it, like www.xyz.com?lang=XXXX.
    Where XXXX is language code e.g. 1033, 1036, etc. and it's dependent on the language chosen by the user for my application.

Please help.

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

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

发布评论

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

评论(2

很糊涂小朋友 2024-08-20 09:39:33

如果网站始终相同,您可以尝试在包中为您支持的每种语言添加一个快捷方式.url,并在磁盘上仅安装该特定语言的快捷方式。
这样您还可以控制用于 .url 文件的快捷方式。

if the website is always the same you could try including one shortcut.url inside your package for each language that you support and install only the one for that specific language on the disk.
this way you could also control the shortcut that gets used for the .url file.

夜司空 2024-08-20 09:39:33

我找到了解决这个问题的方法。
我制作了一个可执行文件,它解析存储的语言,然后调用 ShellExecute 以使用所需的 url 和语言选项启动默认浏览器。我在开始菜单中添加了此可执行文件的快捷方式,图标包含在可执行文件本身中。

I found a work-around for this problem.
I made an executable which parses stored language and then calls ShellExecute to start the default browser with required url and language option. I added a shortcut to this executable in the start menu, icon was included in the executable itself.

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