如何更改安装项目窗口Applicatoin的默认图标 [英] How to change windows Applicatoin's default icon in Setup Project

查看:168
本文介绍了如何更改安装项目窗口Applicatoin的默认图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何与另一个在C#桌面应用程序更改Windows应用程序的默认图标。我试图去改变它在安装项目,但事实并非如此。我想表明我自己的应用程序的快捷方式图标而不是Windows的默认图标

How to change the Windows Application's default icon with other one in C# desktop application. I am trying to change it in Setup Project but it is not. I want to show my own icon with Application's shortcut rather then windows default icon

推荐答案

这是一个真正奇怪的是,当你创建一个部署(设置)项目,并创建一个快捷方式到主输出(一个.exe),该快捷方式不会自动获得.exe文件的图标。相反,它得到一个通用的文件快捷方式图标。这里的一些答案建议增加一个.ico文件来安装,但肯定觉得不妥。你可以得到所需要的图标放到快捷无需添加.ico文件。

It is truly odd that when you are creating a deployment (set up) project, and you create a shortcut to the "Primary output" (an .exe), the shortcut does not automatically get the .exe's icon. Instead it gets a generic document shortcut icon. Some of the answers here suggest adding an .ico file to the installer, but that certainly feels wrong. You can get the desired icon into the shortcut without adding an .ico file.

假设你已经给你的程序所需的图标,

Assuming you have already given your program the desired icon,


  • 在部署项目

  • 右键单击选择菜单项视图>文件系统

  • 在文件系统窗口中,找到您要更改其图标shortuct(例如,用户的程序菜单下)

  • 进入快捷方式的属性(右键单击并选择属性窗口)

  • 去图标

  • 浏览...

  • 更改文件类型为* .EXE

  • 浏览并选择你的主输出

  • 确定,确定

  • right-click on the Deployment Project
  • pick menu item View > File System
  • in the File System window, find the shortuct whose icon you want to change (for example, under "Users's Programs Menu")
  • go to the shortcut Properties (right-click and pick "Properties Window")
  • go to Icon
  • Browse...
  • change "Files of type" to *.exe
  • browse to and select your "primary output"
  • OK, OK

和作为serhio指出,一个类似的过程可以设置控制面板中的添加或删除程序列表中的图标。

And as serhio pointed out, a similar process can set the icon for the Control Panel's "Add or Remove Programs" list.

这篇关于如何更改安装项目窗口Applicatoin的默认图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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