From memory: Windows uses the first icon found in the executable. Replacing it changes the executable's icon.
One of my old Windows tools has the following lines of code to change the final executable's icon:
my $icon='/path/to/an/icon.ico';
my $out='/path/to/program.exe';
my $exe=Win32::Exe->new($out) or die "$out: $!";
$exe->update(icon => $icon);
Win32::Exe should be on CPAN.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
|