Created
March 6, 2017 19:38
-
-
Save Stevoisiak/1ede59568ba58f7bda78613fcfc15542 to your computer and use it in GitHub Desktop.
Extract .ico icon file from .exe with 7zip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You can extract .ico icons from an exe with 7-zip! |
@cbrunnkvist FYI, 7zip has an official Linux/Mac CLI port. The Brew bottle is called sevenzip and the binary is called 7zz. I just tested it and it works the same way for extracting icons.
My understanding is that the official port (sevenzip/7zz) is the preferred program nowadays as it is actively maintained, which is important for stuff like security issues that crop up every now and then.
This is why I love the internet, thankyou kind strangers
Honorable Nomination at the most useless Gist Awards 2017
thanks!
oh my god...
I'm just...wow
had no f... idea 7zip could do this
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do of course do this on the command line using
7zwitheand the-oflag while telling it to extract only the.rsrc/ICONpath ...Example: I just used in order to get my WINEskin Bookworm Adventures shortcut to look proper :)
7z e -oBWA-Icons /Users/conny/Applications/Wineskin/Bookworm\ Adventures\ 2.app/Contents/SharedSupport/prefix/drive_c/Bookworm\ Adventures\ Volume\ 2/BookwormAdventuresVol2.exe .rsrc/ICONEDIT:
I was using
p7zipbut as @WinkelCode mentioned, the 7-zip dot org implementation is also available through thesevenzip(aliased as7zip) package.