Extract Icons from EXE Files in Ubuntu Linux

Extract Icons from EXE Files on LinuxAs I sometimes use Windows programmes for testing cross-compatibility of projects, I end up adding iconless WINE shortcuts to my launcher but there is an easy way to extract icons from EXE files! I normally just hop onto Google Image Search and find a nice .PNG with transparency but here’s a quicker method:

sudo apt-get install icoutils
wrestool -x -t 14 source.exe > output.ico

The above should result in a multi-layered file but it’s quicker and easier to open this proprietary Microsoft Windows .ICO in GIMP, select which icon you’d like to use then export it as a non-proprietary .PNG file to retain transparency.

As they’re the sort of things I wouldn’t remember (or bother) to back-up, I’ve found it convenient to store all of my icons in a sub-directory of my Ubuntu One share so that they’re painlessly accessible on every computer or future installation.

Note: As Rduke15 pointed out, it seems that 64-bit executable binaries are not supported. I’m uncertain if that’s from structural differences or missing libs to add support, such as ia32-libs .

Comments

  • Rduke15

    Unfortunately, it only works with 16 or 32 bit exe files. Not for 64bit executables.

    • I don’t have any Windows software (or functional installation) on-hand but with WINE and WinRAR, I received the following error which I presume you got too:


      wrestool -l WinRAR.exe
      file contains no resources

      I couldn’t find anything that even mentions this scenario and don’t know enough about MSEXEs and couldn’t find anything more useful than a non-comparitice structure. If there isn’t currently a solution or support for this scenario, I’m glad, as a Linux user, I’m only ever using little tools or simple application software that only sometimes have a 64-bit executable, as well.

      Thanks for sharing your…failure, here! ;-)

Leave a Comment