Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Runtime only Perl for Win32

by salva (Canon)
on Feb 01, 2019 at 16:26 UTC ( [id://1229245]=note: print w/replies, xml ) Need Help??


in reply to Runtime only Perl for Win32

Check Win32::Packer. It is aimed at creating standalone applications written in Perl, but maybe you could adapt it to do what you want.

Replies are listed 'Best First'.
Re^2: Runtime only Perl for Win32
by fdesar (Beadle) on Feb 01, 2019 at 18:54 UTC

    I realize that Win32::Packer is probably your creation: would you help me to see what I could do with it ?

    I would need at least to have perl.exe and wperl.exe available and probably a lot of modules (with XS code in them). The must, at first glance, would be to have it installed directly in the Inkscape directory and to have everything (like perllibs, DLL, etc. relative to the path the executables are running, so no environment variables would be necessary as I cannot act from within Inkscape to do anything before calling the Perl executable wperl.exe...). There would be no perl script to install but just the running Perl environment...

    One big problem that comes to my mind is that Inkscape installs itself within the 'Program File' directory which has a space character in its path...

    Anyway, I'll setup a Windows VirtualBox (as I'm not a Windows user) and have a try on this soon...

    Thanks again

      There would be no perl script to install but just the running Perl environment...

      The executable created by tools like Win32::Packer and PAR:Packer don't install anything.

      BUT, the script you package with a tool like those CAN install what you need.

      First, write a script - let's call it "setup_InkPerl.pl" - that copies your framework and customized Perl distribution to the places they need to be.

      Then, run Win32::Packer or PAR:Packer (or other) to create "setup_InkPerl.exe"

      When the end user runs setup_InkPerl.exe, setup_InkPerl.pl, your framework and your Perl mini-distribution will be extracted, then setup_InkPerl.pl will be run.

      In setup_InkPerl.pl, you need to copy your framework to wherever it needs to be for Inkscape to run extension made for your framework. And you need to copy your Perl distribution to somewhere Inkscape can find it.

      There are some scripts in the portable Strawberry Perl distribution that might be helpful, including one that can add entries to the registry.

      I hope this helps

Re^2: Runtime only Perl for Win32
by fdesar (Beadle) on Feb 01, 2019 at 17:45 UTC
    Thanks ! I'll have a look.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1229245]
help
Chatterbox?
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: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found