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

12 Comments

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

  2. indeed… right the info i need… thx4pointing this out

  3. For debian users, the package name is “icoutils”

  4. On Gentoo, the package is “iconutils”

  5. Наверняка, ожидаемая новость

  6. На каком-то сайте я уже читал подобную статью хотя пофиг

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

  8. Я совершенно случайно зашел на этот сайт, но вот обосновался тут надолго. Задержался, потому что все очень интересно. Обязательно скажу о вас всем своим знакомым.

  9. +1 к предыдущему комментарию :)

  10. >>>Секреты контакта<<<

    Чем больше узнаю людей тем больше я люблю собак © Моя девушка – теперь уже бывшая – целыми днями «общалась с подружками» в контакте и нивкакую не хотела мне показывать что там за подружки.
    Благодаря этому сайту я узнал всю правду о ней! Спeрва не хотел писать здесь, а потом решил предупредить остальных – ваши любимые могут скрывать такую грязь от вас! Лучше перебдеть чем недобдеть – это точно правда!

    >>>Взлом контакта<<<

  11. >>>Секреты контакта<<<

    Я бы общался вконтакте чаще но тупое добавление фоток, друзей, групп мягко говоря напрягает. Когда увидел рекламу на этот сайт подумал что какойто левак. Был не прав, признаю. Все что здесь обещают реально работает. Теперь мне не надо тратить время на формальности, я трачу его на дело ;)

    >>>вконтакте.ру<<<

  12. Ого! Спасибо! Теперь на целый день есть работа! :)


One Trackback/Pingback

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

Post a Comment

*
*