Solved

Modifying Win32 PE EXE ProductVersion AFTER compilation

Posted on 1997-11-01
1
384 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MSDN Subscription - Azure and NFP's 3 71
Clicking on Print  property changes format of printing result 1 79
SQL to ElasticSearch Query 1 645
VBA Error Since Excel 2016 x64 5 114
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

832 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