Create exe with custom icon using Perl Par Packer -
i trying create exe file perl script custom icon .i have tried these commands
pp -i "myicon.ico" -o file.exe file.pl pp --icon "myicon.ico" -o file.exe file.pl pp --icon "fullpath\myicon.ico" -o file.exe file.pl
but couldnt solve issue.any suggestions appreciated.thanks.
update : code pp --gui --icon myicon.ico -o out.exe file.pl
. have got error
unknown option: icon binary 'myicon.ico' sure doesn't smell perl source! can't locate method "maybe_command" via package "mm"
the options --icon
, --info
have been removed latest versions of par::packer. according comments module's author on cpan bug tracker, options corrupt files, , since delegated win32::exe anyway expects people use win32::exe directly.1
here's handy one-liner remove default camel icon , add own .ico file. noted hariboo, icon file must match attributes of original camel icon, i.e. 32x32 pixels.
perl -e "use win32::exe; $exe = win32::exe->new('myapp.exe'); $exe->set_single_group_icon('myicon.ico'); $exe->write;"
see perldoc win32::exe other icon-related api calls. there script exe_update.bat
ships win32::exe, users have reported corruption issues (e.g. in this other question).
if you're still getting corrupted exes, try downgrading archive::zip, , rebuilding par.
force install nedkonz/archive-zip-1.08.tar.gz force install par
i have separate, install of portable strawberry packing , modifying exes par::packer. sure pass -x portable.pm
pp
when using portable.2
Comments
Post a Comment