Edit version resources in exe

[email protected] (Kevin Walzer)
Newsgroups perl.par
Organization WordTech Communications LLC
Message-ID <[email protected]>
I am trying to modify a pp-wrapped exe on Windows to use a custom icon 
and custom version information. I'm aware that support for this has been 
dropped from par/pp, so I have been using other tools. After carefully 
constructing an icon in Gimp to include a 16 and 32-pixel image in 256 
colors, as documented in the list archives and at SO, I have gotten the 
icon replaced without issue.

The remaining issue is the version information. Changing the version 
information in any form whatsoever results in the endless array of 
garbage "bad signature" error messages coming up when the app 
launches--a terrible user experience. Is there any way to change the 
information to avoid these errors? I've been using Resource Hacker and 
verpatch like so:

::C:\Users\kevin\Desktop\resourcehacker\ResourceHacker.exe -modify 
"FileMorph.exe",
"FileMorph.exe", "filemorph.ico", ICONGROUP, WINEXE, 0

C:\Users\kevin\Desktop\resourcehacker\ResourceHacker.exe -delete 
FileMorph.exe,
FileMorph.exe, versioninfo, 1, 1033

set VERSION="2.5.0.0 (%date%)"
set FILEDESCR=/s desc "File modification tool"
set COMPINFO=/s company "WordTech Communications LLC" /s (c) "(c) 2015"
set PRODINFO=/s product "FileMorph" /pv "2.5.0.0"

"verpatch.exe" /va /langid 1033 FileMorph.exe %VERSION% %FILEDESCR% 
%COMPINFO% %PRODINFO%

This approach follows the same approach as the icon replacement, 
ovewriting the version data at the same ID point in the exe. However, it 
still triggers the bad signature spew.

So I'm a bit stuck as to how to proceed. Has anyone found a way to do 
this without these errors? exe_update, some other process?


Thanks,
Kevin

-- 
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.