And then goes on to do something equivalent to: my $file = 'icon.ico'; my $path = '.'; $path = $ENV{PAR_TEMP} . "/inc" if exists $ENV{PAR_TMP};my $icon = Win32::GUI::Icon->new("$path/$file"); I'd be interested to know if it still works :-)
It does, except you've got a typo in the second "PAR_TEMP" that just hurt my brain trying to figure out why $path wasn't getting set. It works fine now that I found that. Thanks! On 5/23/07, Erik Kieffer <[EMAIL PROTECTED]> wrote:
> I built one using "pp script.pl -o script.exe -a icon.ico" but the -a or -i? According to the docs, there is no -a
The docs at http://cpan.uwinnipeg.ca/htdocs/PAR-Packer/pp.html mention the -a option to add files to the package. -i sets the app's icon, but I'm trying to add an icon to use within my program (as a NotifyIcon). Oddly enough, while the --help option to the version of pp I've got doesn't mention the -a option either, if I use the Add Packages box in tkpp to try to add my icon to the package, it throws a warning about -m being deprecated for adding non-module files to packages, and tells me to use -a instead. I think it's a case of the documentation with the binary not being up to date. -- Geoffrey Spear http://www.geoffreyspear.com/

