Question

I am running Strawberry Perl on Windows 7, 32-bit. I am also using Par::Packer to create standalone executables. The problem is that PAR::Packer uses a camel icon, and I want to replace it with a different icon. To do that I am using Win32::Exe.

After running Win32::Exe's update script I can change the icon, however now the executable no longer functions. After disabling the GUI flag, and enabling the console, I now get the following output:

Usage: foo.exe [ -Alib.par ] [ -Idir ] [ -Mmodule ] [ src.par ] [ program.pl ]
       foo.exe [ -B|-b ] [-Ooutfile] src.par
Was it helpful?

Solution

The --icon option has been removed from PAR::Packer. Using Win32::Exe directly is the right solution. If the bundled exe_update script corrupts your exe, try issuing the actual Perl code on the command line - see my answer on a similar question.

OTHER TIPS

Have you tried the --icon option to pp?

 pp --icon hello.ico -o out.exe hello

This came from the pp doc:

perldoc pp

PerlMonks thread covers the proper way to create the icon.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top