linux n00b

One day I wont be a n00b anymore!

Extracting Icons from Windows Apps

Posted by downforce on April 7, 2007

I have a few games I play through Wine, and none of them come with their icons as seperate .ico files. As creative as I think not, using the generic linux icons is boring.

Thankfully, there is a tool in linux to extract icons from .exe files, namely icotools. Here’s a guide how to extract icons from .exe files.

  • Get icotools through package manager:
  • wajig install icoutils
  • Within here is two tools, icotool and wrestool. A whatis for both describes them as:
  • icotool (1) - Convert and create Win32 icon and cursor files
    wrestool (1) - extract resources from Microsoft Windows(R) binaries

  • In my case, they are both binaries, so I want wrestool this time
  • cd into the directory of the Windows app.
  • The rest pretty much comes straight from the man wrestool but here’s the low down:
  • To list all icons in the file type:
  • wrestool -l --type=group_icon Win32.exe
  • Extract all icons to current directory, naming the destination files `write.exe_T_N.ico’:
  • wrestool -x --output=. -t14 Win32.exe
  • See what’s extracted:
  • ls -l *.ico; and you should see:
  • Win32.exe_14_1.ico

2 Responses to “Extracting Icons from Windows Apps”

  1. Kids Life Journal Says:

    This is very nice and informative post. I have bookmarked your site in order to find out your post in the future.

  2. Още малко инфо за извличане на иконки от exe-та « Блогът на [Deathmaster] Says:

    [...] Posted by deathmaster88 in Линукс историйки :P. trackback Попаднах на това и останах накефен на макс. Та значи си имало и native [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>