Skip Menu |

This queue is for tickets about the Win32-Exe CPAN distribution.

Report information
The Basics
Id: 20187
Status: resolved
Priority: 0/
Queue: Win32-Exe

People
Owner: Nobody in particular
Requestors: bronson [...] real-time.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.08
  • 0.09
Fixed in: (no value)



Subject: Win32::Exe::write corrupts a certain DLL
All other exes and dlls seem to work fine. It can't read back what it wrote. All other exes and dlls seem to work fine. I even tried upgrading to 0.09. I use this script which is an attempt to tweak things down to the lowest element. Unfortunately, I don't know enough to drill deaper. I'm using ActivePerl 5.8.7.813 on WinXP #!/usr/local/bin/perl use strict; use Win32::Exe; sub usage { return "usage: stampVersion fileVersion productVersion <files...> version - 4 numbers separated by periods. example: 4.5.0.23"; } my $fileVersionStamp = shift || die usage(); my $productVersionStamp = shift || die usage(); while (my $file = shift) { my $exe = Win32::Exe->new($file); my $version = $exe->version_info() || die "Can't read resource section of $file"; #$exe->set_version_info(\["FileVersion",$fileVersionStamp]); #$exe->set_version_info(ProductVersion=>$productVersionStamp); $fileVersionStamp =~ s/\./,/g; $fileVersionStamp =~ s/, ?/, /g; $productVersionStamp =~ s/\./,/g; $productVersionStamp =~ s/, ?/, /g; print "$file: $fileVersionStamp : $fileVersionStamp\n"; $version->set(FileVersion=>$fileVersionStamp); $version->set("/StringFileInfo/#1/FileVersion"=>$fileVersionStamp); $version->set(ProductVersion=>$productVersionStamp); $version->set("/StringFileInfo/#1/ProductVersion"=>$productVersionStamp); $version->refresh; $exe->write; }
Subject: WBDEG44I.DLL
Download WBDEG44I.DLL
application/x-msdownload 389.3k

Message body not shown because it is not plain text.

From: bronson [...] real-time.com
Oops - I attached the wrong file. That last one had a different symptom - very heavy processing and a binary thats 50% bigger as the result. It seams to work, though. Here's the one that gets corrupted.
Download WBDEI44I.DLL
application/x-msdownload 946k

Message body not shown because it is not plain text.

Hi, working through bug list - some from some time ago. my $exe = Win32::Exe->new( 'WBDEI44I.DLL' ); $exe->update( info => [ 'FileVersion=9.9.9.9' ] ); shows no problems and no file size change with Win32::Exe version 0.13 regards Mark