Can't change the default Icon for Windows release

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By YAGU

Hi,

i can’t change the default icon for my windows release.

What i tried;:

  • Changing the “Icon” in “ProjectSettings → General → Application → Config”
  • Changing the “Windows Native Icon” in “ProjectSettings → General → Application → Config”.
  • Setup the “rcedit” path in “Editor → EditorSettings → Export → Windows”
  • Changing the “Icon” in “Project → Export → Windows Desktop Preset”
  • Adding the “Pck” files to the “exe” file
  • Clear the icon cache by using “ie4uinit.exe -ClearIconCache” (and i also tried “ie4uinit.exe -show”

However, even doing all of these things i did not get it to work to use a different icon than the default godot icon.

I really like godot, but this engine makes it unnecessarily difficult to change the icon.
What can i do?

:bust_in_silhouette: Reply From: Inces

I already knew that tutorial, and followed every step but it did not work.

YAGU | 2021-03-26 18:47

:bust_in_silhouette: Reply From: Calinou

The file version and product version specified in the export preset must have the format x.y.z.w (e.g. 1.0.0.0. x.y.z (e.g. 1.0.0) is not a valid Windows version identifier.

If all else fails, you can download the Godot source code corresponding to the version you’re using (e.g. for 3.2.3), replace platform/windows/godot.ico and compile a Windows export template. Once this is done, specify the newly compiled export template as a custom export template in your Windows export preset.

Unfortunately, working with Windows’ PE executable format is notoriously difficult :frowning:

Just checked again, the file version and product version have the correct format.

I’m not interested in compiling a template for every project i make. Every single engine that i worked with in the past had no problems changing the windows icon, except godot.
And that’s a shame, cause i really like godot, it became my favorite game engine (currently).

YAGU | 2021-03-27 00:59