Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:

I have to make a tiny change to a script I wrote a while ago and compiled into a Win32 EXE for a client.

I don't have access to the original machine where I did this (over a year ago), and I can't seem to get a compatible version of Perl and PAR::Packer, using current versions, to run on either of the other two XP boxes I have access to.

Rather than describe the many things I've done which haven't worked, can anyone tell me if they know a solid set of version numbers which will work, as in, if I get Strawberry/Active Perl version X, install PAR version Y and Packer version Z, I can be fairly confident it will work?

Alternatively, not to get too X-Y about it, is there some trick whereby I can replace the tiny portion of the EXE which is my actual script, without disturbing the rest of the Zip contents in any way? I tried that with WinZip but it rendered it unexecutable.

UPDATE: Solved, I think. My solution was to work backward from the PPD files I could find which promised to work. The Bribes repository said it had a version specifically for ActivePerl 5.8.8 build 822, so I uninstalled everything, downgraded to that version via ActivPerl's archive of older builds and it seems to be working.

  • Comment on Desperately Seeking PAR::Packer for Windows XP

Replies are listed 'Best First'.
Re: Desperately Seeking PAR::Packer for Windows XP
by desemondo (Hermit) on Jan 07, 2010 at 01:52 UTC
    If your only requirement is that your script is converted to a portable exe, will perl2exe suffice for what you need to do?

    yes, you'd have to (or should) pay for it if you use it and that sucks a bit - but it might just save your skin if your client has a maintainance agreement on this app with you...

    Update:
    When you run the PAR::Packer test suite, are all the tests passing? If not, which fail?
      Thanks for your help. As you can see above I think I'm fine. PAR::Packer, for your information, would have errors like "perl_hv_common_key_len could not be located" and other things like looking for a "perl5.10.dll" even when using 5.8 versions, so, something of a nightmare...