On Mon, Feb 16, 2004 at 01:57:28AM -0800, Alan Stewart wrote:
> Looking at Exe.pm, if set_icons() retained the PathName for the icon group from the 
> original file rather than making it be "/#RT_GROUP_ICON/#1/#0", and the icon file 
> from 
> the --icon option was also applied to Tk.dll before packing, even Tk programs would 
> show the new icon everywhere.

Good idea.  I have committed a change to Exe.pm so it retains the
original GroupIcon's PathName whereever possible -- you can get it at:

    http://svn.elixus.org/repos/member/autrijus/Win32-Exe/lib/Win32/Exe.pm

I also gave Tk.dll a quite try, using wrestool (from icoutils) to dump
the modified image -- it seems that for some reason the string image
is corrupted (look for $str_image in Win32::Exe::Section::Resource),
as if the length or pointer is incorrectly calculated...

> I did a quick hack on 2-icon.t to see if modifying a .dll worked and it did, except 
> for 
> the icon PathName. If that sounds true, I'll give it the rest a shot...

Do give it a shot if you can, as I really cannot afford to spend more
tuits on Win32::Exe now. :-)

Thanks,
/Autrijus/

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to