# Windows icon doesn’t work

**URL:** <https://forum.defold.com/t/windows-icon-doesn-t-work/72174>\
**Category:** Questions\
**Created:** [December 4, 2022, 6:56pm UTC](https://forum.defold.com/t/windows-icon-doesn-t-work/72174 "2022-12-04T18:56:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lecricreator](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/lecricreator/32/24037_2.png) [@Lecricreator](https://forum.defold.com/u/Lecricreator)\
**Post date:** [December 4, 2022, 6:56pm UTC](https://forum.defold.com/t/windows-icon-doesn-t-work/72174/1 "2022-12-04T18:56:42Z")

</div>

Hey,  
I try to create a PC build, but every time I get this error:

```lua
Error - 2 icon(s) not replaced in C:\Users\scorp360\Documents\prooggrammmer\lua\Defold\projet\drop\+\v10 buyVersion\pc\buy\x86_64-win32\DR0P In Music\DR0PInMusic.exe using C:\Users\scorp360\Documents\prooggrammmer\lua\Defold\projet\drop\DR0P\bundle\win32\work2.ico

```

I have read many topics to solve the problem:

> [@Windows .ico requirements (SOLVED)](https://forum.defold.com/t/windows-ico-requirements-solved/63556/5):
>
> Thank you! That version is paid but there is an older version that is free [Client Challenge](https://filehippo.com/download_icofx/6890/) And compress for Windows Vista can be disabled in the preferences star2

> [@How to add an icon to my windows game? SOLVED](https://forum.defold.com/t/how-to-add-an-icon-to-my-windows-game-solved/68835/5):
>
> Like @Alex_8BitSkull says all you need to do is download the older version of IcoFX and make sure you disable Vista compression for it to generate Windows icons that work well with Defold. Make sure you make all of the standard sizes too.

Même testé les .icon que vous dites fonctionnel, mais aucun ne fonctionne.

I have removed compress for windows Vista add all image for the icon, but it always doesn’t work.

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/e/2/e2e90e6ec8c9360b9ccaa65e51225c054bdf445a.png)

I’ve test all the icon in the topic and all icon put the same error.

Have you got an idea of the problem ?

Thanks for advance. 🙂

Lecricreator

---

<div class="post-metadata">

**Author:** ![anon95708182](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@anon95708182](https://forum.defold.com/u/anon95708182)\
**Post date:** [December 5, 2022, 8:29am UTC](https://forum.defold.com/t/windows-icon-doesn-t-work/72174/2 "2022-12-05T08:29:30Z")

</div>

> [@Lecricreator](#):
>
> I try to create a PC build, but every time I get this error:

😯 Oh, I get the same error now with ico files I have used without problems in previous projects.

---

<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:** [December 5, 2022, 8:33am UTC](https://forum.defold.com/t/windows-icon-doesn-t-work/72174/3 "2022-12-05T08:33:17Z")

</div>

I remember reading in changelog something was changed with Windows icons since those old posts. So people who made those changes would need to comment!

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [December 5, 2022, 8:48am UTC](https://forum.defold.com/t/windows-icon-doesn-t-work/72174/4 "2022-12-05T08:48:46Z")

</div>

We updated the [IconExe.java in 1.3.6](https://forum.defold.com/t/defold-1-3-6-has-been-released/71692), in order to support larger icon sizes.

I don’t think that the actual documentation changed though 🤔  
But let’s ask @britzl if he recalls some info about this.

---

<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:** [December 5, 2022, 12:48pm UTC](https://forum.defold.com/t/windows-icon-doesn-t-work/72174/5 "2022-12-05T12:48:09Z")

</div>

Yes @jhonny.goransson updated to support 256px icons:

[https://github.com/defold/defold/pull/6846](https://github.com/defold/defold/pull/6846)

I don’t recall anything other than the fact that we needed to support 256px icons.

---

<div class="post-metadata">

**Author:** ![jhonny.goransson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jhonny.goransson/32/3864_2.png) [@jhonny.goransson](https://forum.defold.com/u/jhonny.goransson)\
**Post date:** [December 5, 2022, 1:16pm UTC](https://forum.defold.com/t/windows-icon-doesn-t-work/72174/6 "2022-12-05T13:16:39Z")

</div>

The errors have always been there and are not really errors, but more like warnings. I think iconexe prints that line for all the icons it couldn’t replace in the exe you are trying to update. And I think we create the exe with just a few of the supported sizes but not all so if you are trying to update an exe with a size the original exe doesn’t have you will end up with that error.

Here’s the line if anyone is interested:

> <https://github.com/defold/defold/blob/d2a345312038ca8b80256c7d846dbee4ac1a3ab6/com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/bundle/IconExe.java#L79>

---

<div class="post-metadata">

**Author:** ![Lecricreator](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/lecricreator/32/24037_2.png) [@Lecricreator](https://forum.defold.com/u/Lecricreator)\
**Post date:** [December 5, 2022, 8:55pm UTC](https://forum.defold.com/t/windows-icon-doesn-t-work/72174/7 "2022-12-05T20:55:38Z")

</div>

Ok, it’s interesting.

I restart my Window and now the icon appears.  
I have the impression that as long as I don’t restart Windows, it will keep the icon it has had since startup.

I also noticed a detail:  
It is possible to test if all file sizes are there in the file explorer in view.  
 ![teuttrererr](https://defold-forum-bucket.nbg1.your-objectstorage.com/original/3X/4/8/480f223360c393f2d2a072b59a713c68f339777b.gif)
