Solved

Modifying Win32 PE EXE ProductVersion AFTER compilation

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Save copy of document in Word 4 73
Windows 10 Scheduled Tasks 11 76
WPF MainWindow update textbox from another class... 6 102
Post a good COM tutorial 1 49
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

22 Experts available now in Live!

Get 1:1 Help Now