If you create an application, you have also create an installer project. The installer creates two files for you. An setup.exe file and a msi file. The icons of the two files are set by the default windows icons. In Windows 7 it looks like this:
If you want to change the icon of the installer, you can not do that by default in your installer project. Also, the icon of the msi file can not be changed at all. For the setup.exe file you have to do it manually for each time you create a new installer. So every time you fix a bug and releases a new version of your application by the new created installer you have to set the icon manually. Lucky that this is not hard to do.
Change the icon
- Create an installer project with the right settings that you want and build it.
- Now open the setup.exe file in the release folder (that is the one that you want to give to your client) in Visual Studio. You can do this as follow:
- Right click with your mouse on the icon folder and choose “Add Resource…”
- The icon type is now selected by default. Choose on the right of the popup for “Import”
- Navigate to the right icon that you want and select it
- The popup will now close and the icon folder in the explorer is expanded
- Make sure that your new icon has the lowest ID. If you don’t do that, the icon will not been shown
- Save the setup.exe and return in Windows Explorer to the release folder. You should now see the new icon.
One thought to “How to change the setup.exe icon”
thanks.. it worked fine.
@for all those who use .net2 (visual studio 2005), an additional window pops up in btw asking what type of file are you importing. it happens when u try a jpeg or bmp or png. ico files wont face this