0

I would like to add a FileVersion to a .MSI file.
I do not want to add a Version for the installed product/files. I'm looking for a way to modify the MSI, so I can add something like a .RC header (https://msdn.microsoft.com/en-us/library/aa381058(VS.85).aspx).
It has to remain MSI, I can not change it to an executable.

I can work with... WinAPI? .NET? WiX? ... any hints?

Thanks!

Jaster
  • 8,255
  • 3
  • 34
  • 60

1 Answers1

0

There is no "FileVersion" for a MSI file. There is only a MSI PorductVersion.

The ProductVersion is normal property in an MSI file.

In WiX you find the ProductVersion directly in the project node (see WiX docu).

You can retrieve the information with MSI-Api or COM accessing the properties table. Here a C# sample.

xMRi
  • 14,982
  • 3
  • 26
  • 59
  • Not exactly what I asked for, but https://stackoverflow.com/questions/4347325/checking-productversion-of-an-msi-programatically does the trick as well. Thanks! – Jaster Oct 16 '17 at 14:13