Subject: | Unknown version resource info prefix: ri |
The error appears with getVersionStrings on managed assemblies.
perl -e "use Win32::PEFile;my $pe=Win32::PEFile->new(-file=>'TestFile.dll');my $v=$pe->getVersionStrings()"
Unknown version resource info prefix: ri
There was a change in the PE/COFF standard from the 8.1 version relating to the resource section ("corrected error in the .rsrc section to properly reflect the order of resource data entries and resource directory strings"). A newer version of the standard which includes this update can be found here: http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/pecoff_v83.docx
This issue was found on a 64-bit Windows 7 SP1 machine running Strawberry Perl (portable) 5.22.0.1.