nanonyme / pefile

Automatically exported from code.google.com/p/pefile
Other
0 stars 0 forks source link

PE.write(filename) can't write the resource strings to file #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load the file
2. alone PE.DIRECTORY_ENTRY_RESOURCE to find the string
3. change the sting from entry: *.directory.strings[0]
4. pe.write(filename)

What is the expected output? What do you see instead?
the resource should be changed according the write()'s __doc__
but nothing happends

What version of the product are you using? On what operating system?
the lastest version:pefile-1.2.10-107

Is pefile unable to do such a thing or I missed some key point?

Original issue reported on code.google.com by sun...@gmail.com on 17 Jun 2011 at 7:29

GoogleCodeExporter commented 9 years ago
pefile should be able to write modifed strings for the VS_VERSIONINFO entry in 
the resources, not necessarily for others. It still could be achieved by 
looking up the actual address where the resource data is modified and writing 
the corresponding data into the strings. The modified strings will always have 
to be the same length or shorter in order to keep the file structure in place.

Original comment by ero.carr...@gmail.com on 1 Aug 2011 at 4:24