linux n00b

Extracting Icons from Windows Apps

Posted in Desktop, Howto 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

7 Responses

Subscribe to comments with RSS.

  1. Kids Life Journal said, on August 17, 2007 at 03:20

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

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

  3. Knusper said, on October 17, 2008 at 03:20

    indeed… right the info i need… thx4pointing this out

  4. Nico said, on November 2, 2008 at 00:18

    For debian users, the package name is “icoutils”

  5. ThatGuy said, on November 2, 2008 at 22:19

    On Gentoo, the package is “iconutils”

  6. Роман said, on December 26, 2008 at 19:26

    Хм… Какой кошмар!

  7. лoмкaжизнь said, on May 23, 2009 at 22:33

    +1 к предыдущему комментарию 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: