Solved

Modifying Win32 PE EXE ProductVersion AFTER compilation

Posted on 1997-11-01
1
376 Views
Last Modified: 2013-12-03
Does anyone know of a way to change the ProductVersion string and PRODUCTVERSION data stored in a Win32 EXE or
DLL AFTER it has been built?

I know you can change it in the resource editor then recompile, but I want a program to restamp the
ProductVersion of existing DLL's and EXE's.

This would be useful for me since I have a project which includes many DLL's and EXE's. Usually, only an few will change between official releases, so I don't want to recompile them unless I need to. However, I would like to
be able to see which 'official' release they were tested with so I know that if I have a set with the same ProductVersion, they were tested together and will all
work together.

I want a program that could change the ProductVersion's of
a set of EXE's and DLL's.
Does anyone have such an animal or have information on how to write one?
0
Comment
Question by:sderochemont
1 Comment
 
LVL 5

Accepted Solution

by:
y96andha earned 200 total points
Comment Utility
If you are running Windows NT, you can use the BeginUpdateResource, UpdateResource and EndUpdateResource functions to change the VERSIONINFO resource in the EXE or DLL in question.

The easiest way to do it would probably be to first use FindResource, LoadResource and LockResource to retrieve the previous VERSIONINFO, then change the version number and finally write it back with the above functions.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now