Search code examples
cdllversioninggetfileversion

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


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!


Solution

  • 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.