That approach is probably a good workaround for now. If one wants to keep everything in a single par file then the needed files could be packed as a zip file that is itself packed into the PAR exe file. This can then be extracted to some other folder outside the temp dir when the exe is first run.
Somewhere like $ENV{APPDATA}/your-app would work. Shawn. On Sat, 13 Jun 2020 at 15:41, Oliver Betz <list...@gmx.net> wrote: > Ralf.Neubauer wrote: > > > Is there a better way? > > did you consider to use pp to crete the set of required files, but *not* > at runtime? > > You can then put all the required files to a safe directory, optionally > even write protected for ordinary users to avoid unexpected modification. > > I made a simple launcher replacing perl.exe if your users don't want to > need to invoke perl.exe yourapplication.pl > > I remember there is even an "unpacker" from another user to extract all > the needed files from a pp created exe archive. > > Oliver >