How do I add an icon to my app?
Community Forums/General Help/How do I add an icon to my app?
| ||
I want to put an icon in the EXE. I have a 48x48 for XP and a 256x256 icon for Vista. The only advice I've seen is "Use reshacker". Which I downloaded only to find it seems to do nothing when I click the menu option to replace the icon. [edit] I also found a tutorial where Step 1 is "Install MinGW." Why must something so trivial be so difficult? I want to click my EXE, click a PNG file, and click a button to install it as an icon. I'll even go so far as to convert that PNG to an ICO file. But I shouldn't have to go through a ten step process that begins with "Install MinGW." There must be an app out there to do this automatically. |
| ||
This may contain help: http://www.blitzbasic.co.nz/Community/posts.php?topic=82750 |
| ||
"5. used resource hacker, changed its icon, saved" There appear to a few steps missing here. |
| ||
Have you searched for 'replace icon reshacker'? I found this page: http://www.askvg.com/tutorial-all-about-resource-hacker-in-a-brief-tutorial/ It seems you need to select the icon first from the left panel, then go to Action->replace icon. Hope it helps! |
| ||
http://www.blitzmax.com/Community/posts.php?topic=72899#865211 |
| ||
There is no icon resource in the left panel. I saw some screenshots of it with an icon resource listed there, but when I open a blitzmax executable, there is none. Also, the web based icon converter I thought I could use to make the icons doesn't do 256x256 for some reason. |
| ||
Jesse: I shouldn't have to go through a ten step process that begins with "Install MinGW." I want to click my EXE, click a PNG file, and click a button to install it as an icon. |
| ||
Well, that method could come in handy if you want to apply the icon automatically every time you compile the exe. For my previous project, it saved me the hassle of replacing the icon with every update. |
| ||
good luck then. :) |
| ||
I am not shure but I think Blide does it for you. you might want to check it out. |
| ||
I found this program called XN Resource Editor. I think it'll do. http://www.wilsonc.demon.co.uk/d10resourceeditor.htm There's an option to import image resource, and when I import an icon it imports it and dragging the exe onto my desktop or viewing it in explorer shows the icon. But I have no way to test it in Vista, and the website that converted my PNG apparently didn't add a 256x256 version to the .ico file it gave me. So, I guess now I need to know if anyone knows of a free app or website that converts PNG's to vista icons. |
| ||
Warner: Yeah, I could see why you might want to do that, but I don't plan on releasing a ton of updates. I just want something stupidly simple. |
| ||
Try the tutorial I linked to. I just tried it on a b3d program, and it worked. |
| ||
Sswift, the program you linked. Did you manage to change the icon with it? What steps did it require, im messing with it now and while I can see the icon I dont quite understand how to simply swap it out. |
| ||
RifRaf: Unfortunately, I just discovered that program does not support Vista icons because it hasn't been updated since 2005. So I guess I'm back to square one and have to find a Vista icon fomat compatable resource editor. But I did manage to import an XP style icon with it. Resource->Add Resource->Import Image Resource, click .ICO file. Then save EXE. |
| ||
Okay, I think this method works, but I haven't tested it on Vista, and the apps aren't free (though they do give you a 30 day trial period). First you need this to turn your PNG into a Vista compatable icon: http://www.axialis.com/iconworkshop/ Now follow this tutorial: http://www.axialis.com/tutorials/tutorial-vistaicons.html (Make sure to check the checkbox in the window for the diffrent icon sizes which is above the icon preview, and specifies the 256x256 Vista size. It's not checked by default.) Now download the ReplaceVistaIcon exe here, and put it in your game directory: http://www.rw-designer.com/compile-vista-icon Then create a text file, open it in notepad, and enter the folowing: ReplaceVistaIcon.exe yourgame.exe youricon.ico Rename the file to .bat, and run it. Voila, your game will now have an icon in it, and the icon will display in the top left corner of your window, and in explorer, and when you put the EXE on the desktop. And it should work in Vista as well as XP, though I can only test in XP at the moment. |
| ||
The way I did get an icon onto a BlitzMax app was to copy the icon resources from a file with an icon (With ResHack) and save it as a resource file, go to your application and import the resource file then import your icon and save. |
| ||
Reshacker works well (dont forget you will not see any update in the windows folder until it is refreshed, it will still show the old one. |