Changing the EXE icon
by Daniel Buckmaster · in Torque Game Engine · 01/18/2010 (9:55 pm) · 3 replies
I've created my own icon (created an image with transparency in GIMP, exported to PNG, imported to IcoFX to save as an .ico with multiple resolutions), and stuck it in my VS2005 directory. I went in and changed the name in TorqueDemo.rc from "torque.ico" to "skull_icon.ico", and hit 'build'.
When I build the debug EXE, everything works perfectly. However, when I build the release EXE, I have two problems. First, one of the icon resolutions seems to have no transparency - I can see a white background at some sizes. Second, and most annoyingly, the default Torque logo still shows up in some places - for example, in the file info bar in Windows Explorer, and if I view the folder as tiles or at some sizes. (If I copy the EXE to the desktop, I don't get the Torque logo showing up, but I do get the transparency issue.)
Could it be something to do with Windows caching icons and reusing them when it pleases, instead of reusing the new icon I built into the EXE? Or something?
EDIT: I really need to remind myself to try everything before posting. Running with my suspicion, I renamed my 'example' folder to 'demo', and lo and behold, my icon works perfectly. Hm. So does anybody know what I should do to make it work properly without having to rename my folder?
When I build the debug EXE, everything works perfectly. However, when I build the release EXE, I have two problems. First, one of the icon resolutions seems to have no transparency - I can see a white background at some sizes. Second, and most annoyingly, the default Torque logo still shows up in some places - for example, in the file info bar in Windows Explorer, and if I view the folder as tiles or at some sizes. (If I copy the EXE to the desktop, I don't get the Torque logo showing up, but I do get the transparency issue.)
Could it be something to do with Windows caching icons and reusing them when it pleases, instead of reusing the new icon I built into the EXE? Or something?
EDIT: I really need to remind myself to try everything before posting. Running with my suspicion, I renamed my 'example' folder to 'demo', and lo and behold, my icon works perfectly. Hm. So does anybody know what I should do to make it work properly without having to rename my folder?
About the author
Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!
#3
01/18/2010 (11:35 pm)
I believe Windows caches icons, and if it finds the same .exe it'll pull up the old icon. I found that rebooting usually worked after changing the icon.
Torque Owner Nmuta Jones