in reply to PAR::Packer : Can't use the generated exe if there is no installation of perl

I've never used Par::Packer before so this is just a guess, but could it be that something you're packing is looking for the path to the perl.exe binary in %PATH%, and when it can't find it, that's when it's breaking?

Replies are listed 'Best First'.
Re^2: PAR::Packer : Can't use the generated exe if there is no installation of perl
by Psylo (Novice) on Apr 22, 2016 at 14:18 UTC
    I was also thinking about that. But when there is only C:\Strawberry\c\bin in my %PATH% it is working, and there is no perl.exe in this folder... So I will say that this is not the problem

      What is in the c:/strawberry/c/bin directory? I have a few Windows test servers, but all my perls are managed by berrybrew, so I don't have such a dir.

      Perhaps there's something in that directory that isn't perl.exe that's being looked for.

      Can you search through the pre-packed code and search for $ENV{PATH}?

      I suspect the resulting executable relies on one or more of the shared libraries (DLLs) in C:\Strawberry\c\bin. You should either transfer them along to the target machine or look for a way to include them into the PAR executable.