in reply to Build EXE without CPAN access

..even simpler as AnonymousMonks suggested: on another machine download a portable edition of strawberryperl then install everything you wont and then copy that distribution somewhere in the destination machine

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Build EXE without CPAN access
by v4169sgr (Sexton) on May 31, 2016 at 12:10 UTC

    Thanks all for the replies so far.

    The machine I am using is totally locked down. No USB access. No admin access - I have installed Perl to another location to avoid this. No possibility of downloading anything. No "fighting with admin privileges" - this will not even be attempted && whatever works for me will not attempt to bypass protection mechanisms and will work with the system as I find it. I was only able to install ActiveState Perl by jumping through several hoops - Strawberry Perl is a lot simpler in this respect.

    Thanks for the pointer about ppm.bat - I didn't know about that. I can't made ppm.bat run on my machine, but ppm-shell.bat does do something. Can I use this to make a windows exe?

    About the only things I can do are: 1. run something that is already included in a Perl distribution like Strawberry Perl; or 2. literally copy paste from source links on CPAN web pages into an editor and write them to my Perl install: no admin privileges required as I have installed elsewhere.

    Thanks again for the replies - just wondering what is possible.

      If you have a browser on the target machine, you can download the modules from CPAN and install the modules through the cpan tool from the distribution files directly, most likely with the cpan tool but certainly with the cpanm tool:

      cpanm ~/downloads/MyCompany-Enterprise-1.00.tar.gz # install from a +local file

      You can download and install cpanm via App::cpanminus.

        Double checked and verified that any form of downloading - even from a browser URL - is interdicted. To be useful, any solution must not rely on downloading from CPAN ...
      … I have installed Perl to another location …
      How did you do this and why can't you apply this to a minicpan?

      Another possibility might be Perl::Dist, specifically Perl::Dist::Strawberry seems to be actively maintained.

        Another possibility might be Perl::Dist, specifically Perl::Dist::Strawberry seems to be actively maintained.

        thats only if you want to create a .msi, which strawberryperl already provides, anyway since every win32 perl is "portable" just copy/paste "works"

      Is this locked down machine a development system, or the same machine on which the script will later run? If the latter, why do you need to make an EXE at all?

        All machines here are locked down. I develop the script here on the local machine, then roll an EXE and distribute to my user community, so they don't have to install and use Perl directly ...