1. Roland Smith
  2. PowerBuilder
  3. Monday, 9 May 2022 15:48 PM UTC

I'm looking to be able to update the Version Info resource in a PB exe. I want to be able to add values to the StringFileInfo section.

I tried using the BeginUpdateResource, UpdateResource, and EndUpdateResource functions from PB code. Delete of the existing gives invalid parameters. Add works ok but the exe doesn't work afterward.

If anyone can share PB or C++ code, I would appreciate it.

 

Phil Wallingford Accepted Answer Pending Moderation
  1. Tuesday, 31 May 2022 17:42 PM UTC
  2. PowerBuilder
  3. # 1

Hi Roland,

The problem is that a PB EXE does not conform to the Windows PE format.  So the resource editing functions of Windows step all over the PB code.  VersionEdit saves a copy of the PB information before the updating functions and then restores it at the end of the process.

 

Phil

 

Comment
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Tuesday, 10 May 2022 16:03 PM UTC
  2. PowerBuilder
  3. # 2

Haven't tried it, but there's a GITHub published command line tool for this.

https://github.com/electron/rcedit

 

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 10 May 2022 04:57 AM UTC
  2. PowerBuilder
  3. # 3

Hi Roland,

Have you tried the tool VersionEdit by e.crane?

Comment
  1. Roland Smith
  2. Tuesday, 10 May 2022 12:11 PM UTC
I have that at work, we use it to add custom strings. I'm trying to figure it out for a home project.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.