Solved

Modifying Win32 PE EXE ProductVersion AFTER compilation

Posted on 1997-11-01
1
385 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
ID: 1408130
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
EXECUTE AS Permissions To Query system tables requireing View Server State 10 113
Windows 10 Scheduled Tasks 11 99
Using MS Code on my Mac 6 69
Authentication of Web Services 3 89
This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…

821 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