How to change the Windows executable icon?

asked 13 Sep '11, 04:37

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%


Windows icons are also customizable for both the installer and the uninstaller. InstallBuilder expects an ICO file that contains the below images:

  • 64 x 64 pixels, 32bpp (16.7 million Colors)
  • 48 x 48 pixels, 32bpp (16.7 million Colors)
  • 32 x 32 pixels, 32bpp (16.7 million Colors)
  • 24 x 24 pixels, 32bpp (16.7 million Colors)
  • 16 x 16 pixels, 32bpp (16.7 million Colors)
  • 48 x 48 pixels, 8bpp (256 Colors)
  • 32 x 32 pixels, 8bpp (256 Colors)
  • 16 x 16 pixels, 8bpp (256 Colors)

Although some of them can be skipped you must at least provide the following sizes:

  • 48 x 48 pixels, 32bpp (16.7 million Colors) or 8bpp (256 Colors)
  • 32 x 32 pixels, 32bpp (16.7 million Colors) or 8bpp (256 Colors)
  • 16 x 16 pixels, 32bpp (16.7 million Colors) or 8bpp (256 Colors)

If your icon file contains any additional images (such as a 256x256 image), they will just be ignored.

You can specify the icons as shown below:

<project>
   ...
   <windowsExecutableIcon>path/to/installer.ico</windowsExecutableIcon>
   <windowsUninstallerExecutableIcon>path/to/uninstaller.ico</windowsUninstallerExecutableIcon>
   ...
</project>

If the uninstaller icon is not configured explicitly, it will use the icon used in the installer. Similarly, if no installer icon is specified, the default InstallBuilder icon will be used.

The locations specified in the <windowsExecutableIcon> and <windowsUninstallerExecutableIcon> refer to files in the build machine.

Windows ICO files are special because they can contain multiple images in a single ICO file. Because of this special feature of the ICO file, you can store all ICO sizes in a single ICO file.

One of the several methods to create ICO files is through using Gimp (free software), as explained in this tutorial and youtube video tutorial. Gimp is an excellent free image editing software available at http://www.gimp.org.

link

answered 13 Sep '11, 04:42

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%

Using a Context menu Setup 1. Create a shortcut of the EXE file you desire. Right click the desktop and select "Create Shortcut". 2. Right click the shortcut with the default icon for the EXE file. Select Properties and click the "Change Icon" button. 3. Locate the image which is stored as a file. Make sure the icon is preferably 128 pixels long by 128 pixels wide. 4. Apply and save the changes. Click Apply, Hit OK. Check for essay writing service.

link

answered 04 Feb, 03:55

martinluth123's gravatar image

martinluth123
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×176
×29
×4
×2

Asked: 13 Sep '11, 04:37

Seen: 3,653 times

Last updated: 04 Feb, 03:55