Search code examples
c#file-iometadatagetfileversion

c# change FileVersionInfo for any file


With FileVersionInfo class is very easy to read file extra information, but is there any way i can change it?

Thanks.


Solution

  • There's no class in the .NET Framework that lets you do that easily. File version data is stored as a native resource, so it can be changed by functions like BeginUpdateResource. But it requires detailed knowledge about the format in which it's are stored in the executable.