|laziness, impatience, and hubris|
strawberryperl on windows, running extracted par package from command lineby zpimp (Initiate)
|on Apr 03, 2014 at 16:09 UTC||Need Help??|
zpimp has asked for the
wisdom of the Perl Monks concerning the following question:
Hello everyone! i am having some trouble with PAR::Packer
I made a PAR executable package from a script and it runs fine. When I run it, it extracts to a temporary folder and executes from there.
I want to take the already extracted contents and launch that in some way from command line. I assume after extraction there is some exe launched with some arguments, but this isnt documented anywhere that i read, or is more advanced than i can understand
in the extracted temp file the only executable seems to be a modified copy of par.exe I found in the PAR module in my strawberryperl distribution (same 57344 bytes, 97 bytes are different).
when i run it i get
I think there's something to do with @INC wich now i believe is something like include. Tried to manually set perl5lib env var and PAR variables in windows still no luck
Its like blackmagic , i have read everything i could find on PAR but it didnt solve my problem. Today i tried process explorer on it and it shows that the packed exe is running the small exe 37k from temp file, but no command line arguments. so it must be a temp file or env variable somewhere.
i posted this on another site but didnt get an answer, thats why im posting here too