Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2023-12-08 20:06 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (37 votes). Check out past polls.