Web 设置项目中未显示桌面快捷方式图标

发布于 2024-07-22 15:51:44 字数 640 浏览 5 评论 0原文

我创建了一个 Web 设置项目,我希望它创建 Web 应用程序的桌面快捷方式(例如: http: //localhost/xx/yy.aspx)。 到目前为止,这非常简单:我创建了一个快捷方式(无论在哪里),给它我想要的 url,将其添加到我的 Web 设置项目的用户桌面特殊文件夹中,并在安装后将其放置在桌面上。 但后来我想显示我的自定义快捷方式图标。 我设置了在文件系统上创建的快捷方式的图标。 然后我将其重新包含到安装项目中。 但是安装后快捷方式仍然再次显示默认的 IE 图标。 (我在Windows 2003服务器上尝试过这些,在Win XP上,快捷方式显示为无图标)

经过一番尝试后,我发现了另一种方法:我在我的文件系统上重新创建了一个无图标快捷方式,打开了我的Web设置项目,包括此快捷方式和我的Web图标目标计算机上文件系统下的应用程序文件夹,然后单击用户桌面,右键单击右侧空白区域,选择创建新快捷方式并选择我刚刚添加的快捷方式。 然后在用户桌面下,我单击新创建的快捷方式,打开属性窗口并将其图标属性设置为我包含的图标。 这些步骤在 2003 服务器和 win xp 上解决了所有问题。

虽然这并不是一个真正的问题,但我还是想分享它,因为它很烦人。

i've created a web setup project and i wanted it to create a desktop shortcut to the web application (ex: http://localhost/xx/yy.aspx). up to this point it was pretty easy: i created a shortcut (doesnt matter where), gave it the url i wanted, added this to the User's Desktop special folder of my web setup project, and it was placed on the desktop after the installation. but then i wanted to display my custom shortcut icon. i set the icon of the shortcut i've created on my file system. then i re-included this to the setup project. however after the installation the shortcut kept showing the default IE icon again. (i tried these on windows 2003 server, on win xp the shortcut showed up iconless)

after some trials i found another way: i recreated an iconless shortcut on my file system, opened my web setup project, included this shortcut and my icon to Web Application Folder under File System on Target Machine, then clicked on User's Desktop, right clicked on the right hand side blank area, selected Create New Shortcut and chose the shortcut i've just added. Then under User's Desktop i clicked on the newly created shortcut, opened the Properties window and set its Icon property to my included icon. These steps solved it all both on 2003 server and win xp.

Though this wasnt really a question i wanted to share it anyways because it was quite annoying.

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

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

发布评论

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

评论(1

枕梦 2024-07-29 15:51:44

那么问题是您没有在安装程序中包含包含该图标的实际 ico、exe 或 dll 文件吗? 快捷方式文件 (.lnk) 实际上并不包含图标的副本,仅包含指向它们的链接。

So was the problem you were not including the actual ico, exe or dll file containing the icon in the installer? shortcut files (.lnk) do not actually contain a copy of the icon, just a link to them.

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