Skip Menu |

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 74302
Status: resolved
Priority: 0/
Queue: PAR-Packer

People
Owner: RSCHUPP [...] cpan.org
Requestors: tuchman [...] t-online.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.012
Fixed in: (no value)



Subject: Win32 executable additional information (--info) not updated
I am able to change the packaged Windows executable Properties | Details | FileVersion by using the -N (--info) option. However, all other properties are set to the default values I see in the Exe.pm sub default_info. While debugging I was able to see all of my param|values from the command line in an array of hashes along with the default values, but I was not able to follow things any further. I would very much like to change the Copyright property. Thanks in advance! OS: Win7-64, 32bit perl perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Binary build 1402 [295342] provided by ActiveState http://www.ActiveState.com Built Oct 7 2011 15:49:44 Show quoted text
cpan> m PAR::Packer
Module id = PAR::Packer CPAN_USERID RSCHUPP (Roderich Schupp <rschupp@cpan.org>) CPAN_VERSION 1.012 CPAN_FILE R/RS/RSCHUPP/PAR-Packer-1.012.tar.gz UPLOAD_DATE 2011-12-02 MANPAGE PAR::Packer - PAR Packager INST_FILE C:\bin\perl\site\lib\PAR\Packer.pm INST_VERSION 1.012 Show quoted text
cpan> m PAR
Module id = PAR DESCRIPTION Perl Archive Toolkit CPAN_USERID AUTRIJUS (Audrey Tang <cpan@audreyt.org>) CPAN_VERSION 1.004 CPAN_FILE R/RS/RSCHUPP/PAR-1.005.tar.gz UPLOAD_DATE 2011-12-02 DSLIP_STATUS RmhOp (released,mailing-list,hybrid,object-oriented,Standard-Perl) MANPAGE PAR - Perl Archive Toolkit INST_FILE C:\bin\perl\site\lib\PAR.pm INST_VERSION 1.005
On 2012-01-24 00:53:21, gronsdorfer wrote: Show quoted text
> I am able to change the packaged Windows executable Properties | Details > | FileVersion by using the -N (--info) option. However, all other > properties are set to the default values I see in the Exe.pm sub > default_info.
--info and --icon are mostly broken in current releases of PAR::Packer. Mark Dootson (Win32::Exe maintainer) has reworked the PAR::Packer build process wrt Windows exceutable resource handling. Please try development head at http://svn.openfoundry.org/par/PAR-Packer/trunk (make sure you have the latest version of Win32::Exe) Cheers, Roderich
Subject: Re: [rt.cpan.org #74302] Win32 executable additional information (--info) not updated
Date: Thu, 26 Jan 2012 06:48:18 +0100
To: bug-PAR-Packer [...] rt.cpan.org
From: Ken Tuchman <tuchman [...] t-online.de>
Hi Roderich, Thanks for the quick response! My Win32::Exe is up-to-date at 0.17. I installed the head of the trunk (all tests passed), but when I tried to package my script, I got the following error: "D:\data\CI\V36\crash_inspect\dev\build>mk_CI_PAR.bat Set up gcc environment - 3.4.5 (mingw-vista special r3) Set up gcc environment - 3.4.5 (mingw-vista special r3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail." I never heard of sxstrace.exe before, but attempted to get a log of the problem (attached). The error in the log (snippet below) doesn't tell me much. Any suggestions? "INFO: Parsing Manifest File C:\Users\KAT\AppData\Local\Temp\parlmquj.exe. INFO: Manifest Definition Identity is (null). ERROR: Line 0: XML Syntax error. ERROR: Activation Context generation failed. End Activation Context Generation." Thanks and regards, -ken On 25-Jan-12 15:11, Roderich Schupp via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=74302> > > On 2012-01-24 00:53:21, gronsdorfer wrote:
>> I am able to change the packaged Windows executable Properties | Details >> | FileVersion by using the -N (--info) option. However, all other >> properties are set to the default values I see in the Exe.pm sub >> default_info.
> --info and --icon are mostly broken in current releases of PAR::Packer. > Mark Dootson (Win32::Exe maintainer) has reworked the PAR::Packer > build process wrt Windows exceutable resource handling. > Please try development head at > > http://svn.openfoundry.org/par/PAR-Packer/trunk > > (make sure you have the latest version of Win32::Exe) > > Cheers, Roderich
Download parsed1.zip
application/x-zip-compressed 1.2k

Message body not shown because it is not plain text.

RT-Send-CC: mark.dootson [...] znix.com
cc'ing Mark Dootson on this, because I think the problem is in Win32::Exe (or how we generate the prototypical packed executable, i.e. PAR-Packer/myldr/boot.exe) On 2012-01-26 00:48:44, gronsdorfer wrote: Show quoted text
> I installed the head of the trunk (all tests passed),
Yeah, turns out there's no test for "pp --info ..." :( Show quoted text
> but when I tried to package my script, I got the following error: > > The application has failed to start because its side-by-side > configuration is incorrect.
I did some experiments using Win32::Exe's exe_update: exe_update --info ProductVersion=44.1 packed.exe seems to work (can see 44.1 in Windows Explorer, packed.exe runs fine), exe_update --info ProductName="inglorious basterds" packed.exe seems to corrupt the executable (Explorer doesn't even show a "Version" tab, executing packed.exe results in "can't execute" error). If I try this with some random executable, it works as expected. Note: My experiments were done on (32-bit) XP. Cheers, Roderich
The --info option for pp has been removed in PAR::Packer 1.015.