安装程序问题,为什么我也会得到一个图标. [英] Installer Questions, why do I get an Icon as Well....

查看:86
本文介绍了安装程序问题,为什么我也会得到一个图标.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在C#程序上附加了一个安装程序,它似乎正在创建所需的目录结构和快捷方式,问题出在桌面上的快捷方式上,所有程序菜单都使用一个自定义图标,我只能进入如果已将它作为单独的项目包含在安装程序项目中,然后将其安装.
我错过了什么,MSDN页面似乎无济于事.

Glenn

Hi,
I have an installer attached to a C# program it seems to be creating the directory structure that is required and short cuts, the issue is in the short cuts on the desk top and the all programs menu uses a custom icon which I can only get to if it is Included it as a separate item in the installer project which then gets installed.
What have I missed, the MSDN pages don''t seem to help.

Glenn

推荐答案

您什么都没错过.没错.

要将自定义图标用于快捷方式和可执行文件,必须在安装中包含该自定义图标.

如果要更改它,请更改安装程序上的引用.
You haven''t missed anything. That is correct.

To use a custom icon for the short cuts and executable you must include the custom icon in the install.

If you want to change it change the reference on the installer.


嗯...下面是解决方案,我的一个朋友提出来了.我似乎上班了!

在安装项目中,选择快捷方式.

在属性中,转到(图标)属性,然后选择(浏览…)以获取图标选择对话框.

单击浏览按钮.

更改文件类型"以查找exe的

找到您的主要可执行文件并将其选中,然后从exe文件中选择一个图标.

这将为快捷方式提供正确的图标.



不需要单独的图标文件或任何其他文件……..
Umm... the solution is below, a friend of mine came up with it. I appears to work!

In the setup project, select the shortcut.

In the properties, go to the (Icon) property and select (Browse…) to get the icon selection dialog

Click the browse button.

Change the "Files of type" to look for exe’s

Find your main executable and select it, then pick an icon from the exe.

This will give the shortcut the correct icon.



No need to have a separate icon file or anything…..


这篇关于安装程序问题,为什么我也会得到一个图标.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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