桌面快捷方式图标未显示在Web安装项目中 [英] desktop shortcut icon not showing in web setup project

查看:308
本文介绍了桌面快捷方式图标未显示在Web安装项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Web设置项目,我希望它创建一个Web应用程序的桌面快捷方式(例如: HTTP://localhost/xx/yy.aspx )。到目前为止,这很简单:我创建了一个快捷方式(无论在哪里),给它我想要的网址,将其添加到我的网页设置项目的用户桌面特殊文件夹中,安装后放在桌面上。但后来我想显示我的自定义快捷方式图标。我设置了我在文件系统上创建的快捷方式的图标。然后我重新将其包含在安装项目中。但是在安装后,快捷方式再次显示默认的IE图标。 (我在Windows 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)

经过一些试验后,我找到了另一种方法:我在文件系统上重新创建了一个无图标的快捷方式,打开我的网页设置项目,将此快捷方式和我的图标包含在目标机器上的文件系统下的Web应用程序文件夹中,然后单击用户桌面,右键单击右侧空白区域,选择创建新快捷方式并选择快捷方式i'我刚补充说。然后在用户桌面下单击新创建的快捷方式,打开属性窗口并将其Icon属性设置为我的包含图标。这些步骤在2003服务器和win xp上解决了这一切。

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.

推荐答案

问题是你没有包含安装程序中包含图标的实际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.

这篇关于桌面快捷方式图标未显示在Web安装项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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