-
-
Save Stevoisiak/1ede59568ba58f7bda78613fcfc15542 to your computer and use it in GitHub Desktop.
You can extract .ico icons from an exe with 7-zip! |
Thank you for posting this, I needed to get some icons for my new Streamdeck and after a lot of searching (and not wanting to install another application that needs admin rights) I finally found this.
For example here is the VS Code icon: C:\Users\{MY USERNAME}\AppData\Local\Programs\Microsoft VS Code\Code.exe\.rsrc\1033\ICON\2.ico
There is also a file called 1
which seems to be a PNG according to the header.
Edit: Seems like the best way to get the best icon is to find the largest file. Numbering is unreliable, Windows Terminal for instance has 0 as its lowest resolution. Files without extensions seem to be PNGs. I think the PNGs should generally be the best resolution, in VS Code's case it's smaller than the largest icon, but I suspect that's because of better compression.
this was almost useful!
its useful, yall really need a tutorial to download 7zip and right click on an exe ,open archive and go to icons?
(use this as a tutorial 💀)
btw the files with out extensions in the end are png files
awesome info, thank you :)
@tomcass240 To be honest, I don't remember posting this gist or what the context was. However, I believe you can open an exe as an archive with 7zip to find the icon file.