Reputation: 15
How can I verify the Publish Revision version of a .exe file through another program? I did it this way but the results are incorrect:
var b = path_exe;
System.Version version = System.Reflection.Assembly.LoadFile(b).getName()Version;
Upvotes: 0
Views: 71
Reputation: 903
You can use following
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo("path");
MessageBox.Show(fvi.FileVersion);
MessageBox.Show(fvi.ProductVersion);
Upvotes: 1