Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Runtime only Perl for Win32

by fdesar (Beadle)
on Feb 01, 2019 at 18:54 UTC ( [id://1229256]=note: print w/replies, xml ) Need Help??


in reply to Re: Runtime only Perl for Win32
in thread Runtime only Perl for Win32

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

Replies are listed 'Best First'.
Re^3: Runtime only Perl for Win32
by RonW (Parson) on Feb 04, 2019 at 15:58 UTC
    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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found