# Windows build icon problem (DEF-1790) (SOLVED)

**URL:** <https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589>\
**Category:** Bugs\
**Created:** [April 17, 2016, 10:37am UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589 "2016-04-17T10:37:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [April 17, 2016, 10:37am UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589/1 "2016-04-17T10:37:41Z")

</div>

You can see this problem in the Defold editor too

 ![](https://forum-defold-uploads.b-cdn.net/original/1X/eae2bbc532817bf870149e1c0fd2f37611c37d9a.png)

 ![](https://forum-defold-uploads.b-cdn.net/original/1X/b24e8c8fefa2972645ffdaa0f3dd9d472b07a679.png)

I’m not sure what’s wrong, but I know I dealt with this kind of problem before in the past. Here is my tools for building icon.res files if that helps. I use [https://iconverticons.com/online/](https://iconverticons.com/online/) to make good ico files from pngs

[icon.zip](https://forum-defold-uploads.b-cdn.net/original/1X/8e70daa68b2874c18c4d3d16625c0233f54a84a2.zip) (545 Bytes)

Maybe custom icon is simply being ignored? The main exe doesn’t show custom icon either after being bundled.

 ![](https://forum-defold-uploads.b-cdn.net/original/1X/96d1d45e58411de8b562b5ab715b082bf027396b.png)

---

<div class="post-metadata">

**Author:** ![unindented](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/unindented/32/718_2.png) [@unindented](https://forum.defold.com/u/unindented)\
**Post date:** [April 19, 2016, 5:40pm UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589/2 "2016-04-19T17:40:28Z")

</div>

Try using an icon that only contains sizes 128, 48, 32 and 16. I was trying an `.ico` file with more resolutions, and `bob.jar` was throwing the following error:

```plaintext
Error - 4 icon(s) not replaced in /var/folders/mm/jk7g3fgx3q18vhcrhl8wq93h0000gn/T/7238089774573629213/x86-win32/dmengine_release.exe using /Applications/Defold/branches/20702/11115/master/resources/win32/app_icon.ico

```

---

<div class="post-metadata">

**Author:** ![unindented](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/unindented/32/718_2.png) [@unindented](https://forum.defold.com/u/unindented)\
**Post date:** [April 19, 2016, 5:41pm UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589/3 "2016-04-19T17:41:40Z")

</div>

Nah, now I don’t get an error, but I don’t get the proper icon either…

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 19, 2016, 8:50pm UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589/4 "2016-04-19T20:50:46Z")

</div>

I looked at the code and it seems as though it requires a .ico file with the following seven images:

```
* 1. 256x256, 32 bit (RGB / Alpha Channel)
* 2. 48x48, 32 bit (RGB / Alpha Channel)
* 3. 32x32, 32 bit (RGB / Alpha Channel)
* 4. 16x16, 32 bit (RGB / Alpha Channel)
* 5. 48x48, 8 bit (256 colors)
* 6. 32x32, 8 bit (256 colors)
* 7. 16x16, 8 bit (256 colors)

```

Could you please check your .ico file?

---

<div class="post-metadata">

**Author:** ![unindented](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/unindented/32/718_2.png) [@unindented](https://forum.defold.com/u/unindented)\
**Post date:** [April 19, 2016, 11:02pm UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589/5 "2016-04-19T23:02:40Z")

</div>

Just tried with this `.ico` with seven images in the format you specified, and no luck.

Do you have a sample `.ico` that works that we can study?

[app\_icon.ico.zip](https://defold-forum-bucket.nbg1.your-objectstorage.com/original/2X/7/7b0c32d0072dc719c0278893e175d2f3bba75d7e.zip) (69.4 KB)

---

<div class="post-metadata">

**Author:** ![unindented](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/unindented/32/718_2.png) [@unindented](https://forum.defold.com/u/unindented)\
**Post date:** [April 27, 2016, 7:31am UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589/6 "2016-04-27T07:31:52Z")

</div>

Sorry for bumping this thread, but I’m still interested in solving this. @britzl do you have an `.ico` that works, so that we can take a guess at what’s happening?

---

<div class="post-metadata">

**Author:** ![sven](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sven/32/1086_2.png) [@sven](https://forum.defold.com/u/sven)\
**Post date:** [April 27, 2016, 7:56am UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589/7 "2016-04-27T07:56:56Z")

</div>

This was actually a bug in the build/bundle-steps, @jakob.pogulis has already merged a fix for this and it will land in the stable on Monday! 🙂 I’m adding the issue id to the topic as well. Thanks for reporting!

---

<div class="post-metadata">

**Author:** ![unindented](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/unindented/32/718_2.png) [@unindented](https://forum.defold.com/u/unindented)\
**Post date:** [April 27, 2016, 8:24am UTC](https://forum.defold.com/t/windows-build-icon-problem-def-1790-solved/1589/8 "2016-04-27T08:24:13Z")

</div>

Great to know, thank you!
