How to change the file version and product name of a .dll using C?

2.6k Views Asked by At

when I click the properties of .Dll -> Details , I get this window: enter image description here

I want to access this information and change \ add File version and Product Name Can I get some help with it ? how can I access it ? I saw that in C# I can use :

string fileVersion = FileVersionInfo.GetVersionInfo(file).FileVersion;
string productVersion = FileVersionInfo.GetVersionInfo(file).ProductVersion;

but I want to do it using C language.

can anyone help and guide me a little?

thanks!

1

There are 1 best solutions below

2
user93353 On BEST ANSWER

Version information is kept as resource files in Windows. You can check the source code of this tool for how to change the resource in a file.