How to change windows Applicatoin's default ic

2019-01-21 17:46发布

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

6条回答
Root(大扎)
2楼-- · 2019-01-21 17:50

Right click on Primary Output of Your Project and Select Create Shortcut. Give it a name and then click on its properties and set the icon.

In the setup project you cannot change the primary output's icons. You can create new shortcuts on the desktop etc and apply custom icons on those.

查看更多
Juvenile、少年°
3楼-- · 2019-01-21 17:54

You can change the icon of the application inside the Windows Application itself. And put that application in the setup project.

Right click the WinApp Project and inside the Application section you can choose and Icon which will be an ico file. Browse for the icon file and select it. Build the project and attach it to the setup project.

查看更多
劫难
4楼-- · 2019-01-21 17:59

You can also change the Icon in the Add & Remove Programs list.

For this select the Setup1 project and select the property AddRemoveProgramsIcon.

You can select an .ico file or leave the main .exe output as file for the icon.

查看更多
Explosion°爆炸
5楼-- · 2019-01-21 18:04

Make sure you .ico is not to big. Had this issue for hours just to find 256x256 is to big. 48x48 is perfect but I think 128x128 might also work.

查看更多
一纸荒年 Trace。
6楼-- · 2019-01-21 18:10

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,

  • 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

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

查看更多
时光不老,我们不散
7楼-- · 2019-01-21 18:13

Right click on you windows application project, select properties. In the properties window, select the application tab. In the application tab, there is a radio button saying Icon and manifest. Select that and browse and select your custom icon for the application in the Icon drop down menu.

Thnks

查看更多
登录 后发表回答