View previous topic :: View next topic |
Author |
Message |
spindle Apprentice
Joined: 01 Dec 2003 Posts: 245
|
Posted: Fri May 27, 2005 5:32 pm Post subject: Extracting Windows Icons from .exe [SOLVED] |
|
|
Is there a way to extract the icon from a Windows .exe to use for a launcher in KDE, Gnome, etc?
Last edited by spindle on Fri May 27, 2005 6:37 pm; edited 1 time in total |
|
Back to top |
|
|
rutski89 Guru
Joined: 14 Mar 2005 Posts: 468 Location: United States N.Y.
|
Posted: Fri May 27, 2005 5:36 pm Post subject: |
|
|
Yes, I'm pretty sure there is. I have a friend who knows exactly how to do it for sure, I'll get you guys in touch when he gets home. You might also want to know that if you try to "customize" an icon via "right-click --> properties" under windows you get a list of possiable immages that you can use for it. Those images have got to be stored somewhere, maybe even in as regular old .png file in the c:\Windows folder; I'd suggest scowering that while you wait. _________________ << ^ | ~ >> |
|
Back to top |
|
|
gimpel Advocate
Joined: 15 Oct 2004 Posts: 2720 Location: Munich, Bavaria
|
Posted: Fri May 27, 2005 5:39 pm Post subject: |
|
|
if that exe is an executeable cabinet file (i think so as it contains .ico files i guess), you can use the tool cabextract.
if that works you'll have a bunch of .ico files. you can convert those using icotool from the icoutils package
cheers! _________________ http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
|
|
Back to top |
|
|
spindle Apprentice
Joined: 01 Dec 2003 Posts: 245
|
Posted: Fri May 27, 2005 6:04 pm Post subject: |
|
|
Thanks for the quick reply people. I've been trying the icotool and cabextract with no luck.
No valid cabinets found with cabextract. |
|
Back to top |
|
|
niskel Guru
Joined: 17 Nov 2004 Posts: 457 Location: Fredericton, NB, Canada
|
Posted: Fri May 27, 2005 6:16 pm Post subject: |
|
|
If you have wine, you could try RESHack. It's a windows tool to do things just like this. It extracts .ico files, among other things, from .exe and .dll files. |
|
Back to top |
|
|
spindle Apprentice
Joined: 01 Dec 2003 Posts: 245
|
Posted: Fri May 27, 2005 6:36 pm Post subject: |
|
|
ResHack worked wonderfully. Thanks for all your help, people. And in record time too.
This is what I did,
Ran ResHack under wine to extract the .ico file. Then used icotool to convert to .png. Moved .png to ~/.icons. Then referenced it with my launcher. |
|
Back to top |
|
|
echo6 Guru
Joined: 04 Jan 2003 Posts: 587
|
Posted: Sat May 28, 2005 4:27 pm Post subject: |
|
|
You can use the linux convert command also
Code: | convert filename.ico filename.png |
This copies out groups of icons and appends the number to the end of the png file. |
|
Back to top |
|
|
|