HOWTO+-+Extract+Icons+from+exe+in+Linux+and+Create+Wine+Launchers

code format="bash" apt-get install icoutils code

Example extracting all of the icons contained in the iexplore.exe code format="bash" cd ~/.wine/drive_c/Program Files/Adobe/Adobe\ Photoshop\ CS4; mkdir photoshop_icons; cd photoshop_icons; cp ../Photoshop.exe .; for i in `wrestool -l Photoshop.exe | grep group_icon | awk '{ print $2}' | cut -f2 -d=` ; do wrestool -x -n $i Photoshop.exe > $i.ico ; done code

Converting all of the icons to png images. code format="bash" find. -name \*.ico -exec icotool -x {} \; code

To create a launcher, make a file named photoshop and put the following lines into it. code format="bash"
 * 1) !/bin/bash

if [ $# -eq 0 ] then env WINEPREFIX="/home/cyber/.wine" wine C:\\windows\\command\\start.exe /Unix /home/cyber/.wine/dosdevices/c:/users/Public/Start\ Menu/Programs/Adobe\ Photoshop\ CS4.lnk else

env WINEPREFIX="/home/cyber/.wine" wine C:\\windows\\command\\start.exe /Unix /home/cyber/.wine/dosdevices/c:/users/Public/Start\ Menu/Programs/Adobe\ Photoshop\ CS4.lnk "z:$1" fi code

Then open the menu editor and create a new entry with the icon extracted from the previous step and put the "photoshop" as the command to be run. You can use also this one to open files when right clicking on them ;)