in reply to Re: Perl exe as a service, stuck on starting
in thread Perl exe as a service, stuck on starting

I first replaced the Registry.pm (./perl/site/lib/Win32/ on my installation) from the installed module Win32::Registry by the one found here: http://jenda.krynicky.cz/#Win32::Registry2. This Registry.pm package contains the HKLM definition (amongst with other changes). I had also to change the version as it was expecting the one from the original Win32::Registry (you'll see that error and the expected version if you do not change anything). There should be a more "clean" way to replace this package, but at least what I did is working. This should solve your issue.

Then I'm using an older version of pp (1.014). This is because I wanted to change the exe icon, and with newer versions you can't.

Maybe not important for you, but with the installation of libraries I also have an issue with the "ar" command, which generates issues at compilation time (g++ issue message about ".a" files that are not recognized). I compiled the ".a" files with "ar" on another platform (Cygwin).

I'm using Strawberry Portable (v5.14.4) on Win10.

I hope that this will help you running your program. If not, just ask ;)

  • Comment on Re^2: Perl exe as a service, stuck on starting

Replies are listed 'Best First'.
Re^3: Perl exe as a service, stuck on starting
by swl (Prior) on Feb 27, 2018 at 20:51 UTC

      Thanks for the information, good to know but I won't use that method unless I really have to. I need to compile multiple applications with different icons, and that method is a bit tricky in my case.

        Yes, it's less useful if you have multiple applications to pack. It does not take too long, though, and you could always have distinct versions of PAR::Packer in separate that get loaded using the PERL5LIB environment variable, or specify them in the respective build scripts. Probably a pain to update, but at least you get the more recent PAR::Packer which has several useful options such as for packing unicode (--unicore) and module sets (e.g. -M List::).

        There is also the process at http://www.zewaren.net/site/?q=node/116 which you might have some luck with.

        An alternative that you could check out is salva's fairly new module Win32::Packer, which appears to let you specify an icon file to use. I haven't had a chance to try out the module myself, but I've been wanting to do so.

        Based on it's CPAN Testers results, it looks like you might have a challenge getting Win32::Packer to install with the portable Strawberry Perl version 5.14.4 that you say you are using.