Skip to content
Menu
Jumlins TechBlog
  • Home
  • About
Jumlins TechBlog

Extracting icons from exe files in linux.

Posted on 2010-03-07 by Dennis

So in my desperate need to make some application shortcut look pretty in linux, i needed to extract the icon from a windows exe.

The icoutils package provides some very nice tools, one of them being wrestool which i used.

EXAMPLES
List all resources in file `write.exe':

  $ wrestool -l write.exe
  --type=3 --name=1 --lang=1033 [type=icon offset=0x3120 size=752]
  --type=3 --name=2 --lang=1033 [type=icon offset=0x3410 size=304]
  --type=14 --name=1 --lang=1033 [type=group_icon offset=0x3540 size=34]
  --type=16 --name=1 --lang=1033 [type=version offset=0x3564 size=808]

List all (group-) icon resource in file `write.exe':

  $ wrestool -l --type=group_icon write.exe
  --type=14 --name=1 --lang=1033 [type=group_icon offset=0x3540 size=34]

Extract all icons to current directory, naming the destination files `write.exe_T_N.ico':

  $ wrestool -x --output=. -t14 write.exe
  $ ls *.ico

Share on Facebook

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Office 365 Groups/Teams powershell reporting script 2019-03-25
  • [Powershell Script] Convert ImmutableID 2018-09-12
  • Script to Schedule Mem and or vCPU up/downgrade 2015-05-13
  • Backing up VMs in Hyper-V 2013-01-09
  • Windows Server 2012 as a Workstation 2012-09-13

Archives

Categories

  • Exchange 2003
  • Exchange 2010
  • HTML/CSS
  • Imagick
  • JavaScript
  • Linux
  • Misc
  • Office 365 / Azure
  • PHP
  • PowerCLI
  • PowerShell
  • Projects
  • Scripts
  • Server
  • System Administration
  • VMware
  • Winbatch
  • Windows
  • Windows Server 2012

Recent Posts

  • Office 365 Groups/Teams powershell reporting script 2019-03-25
  • [Powershell Script] Convert ImmutableID 2018-09-12
  • Script to Schedule Mem and or vCPU up/downgrade 2015-05-13
  • Backing up VMs in Hyper-V 2013-01-09
  • Windows Server 2012 as a Workstation 2012-09-13
©2023 Jumlins TechBlog | Powered by WordPress & Superb Themes