|We don't bite newbies here... much|
Re: many exe files rely on one libraryby syphilis (Chancellor)
|on Oct 14, 2012 at 01:50 UTC||Need Help??|
Is it possible to have pp create an exe file that packs in *only* the code that's contained in your script ?
Such an executable would need to be able to find perl on the local machine - so you would need to install perl on all client machines, then distribute this "minimalist" executable that has packed in only your code and pulls in the perl that has been installed.
If pp doesn't already provide this capability, then I think it's a feature that might be worth adding. FAIK, this might not even be do-able. (Or, it might even amount to being the same thing as distributing the script as is :-)
Looking at the docs (as I don't actually have PAR::Packer installed) I wonder if pp -S -o hello.exe hello.pl does precisely what I'm suggesting ?
I'm guessing it doesn't, but it's not hard to check. Just create an executable (from the simplest of perl scripts) using that command, check that the exe runs on your machine, then remove Perl from your path and see if the exe still works. If the exe still works, then obviously it must contain perl within it ... which is *not* what we're looking for.