Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Portable win32 perl application without PAR::Packer

by RonW (Parson)
on Oct 15, 2014 at 18:24 UTC ( #1103950=note: print w/replies, xml ) Need Help??

in reply to Portable win32 perl application without PAR::Packer

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.

  • Comment on Re: Portable win32 perl application without PAR::Packer

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1103950]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2023-12-11 06:08 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (41 votes). Check out past polls.