troubleshooting Question

Windows API - Set Version Information of Existing File

Avatar of AdrianSRU
AdrianSRU asked on
ProgrammingC++Microsoft Development
3 Comments1 Solution1762 ViewsLast Modified:
I need a way to set the version information of an existing file.  By version information I mean the information that is retrieved by a call to GetFileVersionInfo.

I have a component in my program to zip files into a cabinet (CAB) file.  I frequently release updates of my program and I need a way to find out which version of the program a particular CAB file was made with.  Unfortunately, the component that I use does not have an option to set the version information as it creates the file.

I can't find anything like a SetFileVersionInfo function in the API documentation and I'm not sure that what I'm trying to do is even possible.  The only other option that I can think of is to put the version number in the filename but I would like to avoid that as my users frequently rename their backups.

Thank you in advance for your responses!

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros