I have done something similar using the portable variant of Strawberry Perl as the foundation. It comes with a .BAT script to launch a CMD window with its environment setup for using Perl. This script can be modified to include the name of a .pl file to run.

For my "project", I unzipped portable Strawberry and ran the .BAT script as-is. I then "installed" several modules from cpan using the cpan command as usual.

Once I had the additional modules installed, I put my Perl programs and custom .BAT scripts to launch them in the base folder and tested it. Then I zipped the modified Strawberry "installation". My coworkers had no problems unzipping and running the programs.

It is also possible to go a step further. With 7-Zip, I created a self-extracting archive containing a .CMD script that updated PATH in the Windows Registry. My coworkers could then just double click on the archive, which would then extract itself and "install" my programs.

Update: Forgot to mention that the .CMD script just called a Perl program to do the registry update.


In reply to Re: Portable win32 perl application without PAR::Packer by RonW
in thread Portable win32 perl application without PAR::Packer by basiliscos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.