本文介绍了PAR和Win32 :: Exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7(32位)上运行Strawberry Perl.我还使用Par :: Packer创建独立的可执行文件.问题是PAR :: Packer使用骆驼图标,我想用其他图标替换它.为此,我使用的是Win32 :: Exe.

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.

运行Win32 :: Exe的更新脚本后,我可以更改图标,但是现在可执行文件不再起作用.禁用GUI标志并启用控制台后,我现在得到以下输出:

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

推荐答案

--icon选项已从PAR :: Packer中删除.直接使用Win32 :: Exe是正确的解决方案.如果捆绑的exe_update脚本破坏了您的exe,请尝试在命令行上发布实际的Perl代码-请参阅我对类似问题的回答.

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.

这篇关于PAR和Win32 :: Exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 18:00