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.
문제
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
해결책
다른 팁
Have you tried the --icon option to pp?
pp --icon hello.ico -o out.exe hello
This came from the pp doc:
perldoc pp
제휴하지 않습니다 StackOverflow