user1386966
user1386966

Reputation: 3402

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!

Upvotes: 0

Views: 2852

Answers (1)

user93353
user93353

Reputation: 14049

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.

Upvotes: 2

Related Questions