Blade199
Blade199

Reputation: 15

get Publish Revision other .exe c#

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

Answers (1)

Rajeev
Rajeev

Reputation: 903

You can use following

FileVersionInfo fvi = FileVersionInfo.GetVersionInfo("path");
MessageBox.Show(fvi.FileVersion);
MessageBox.Show(fvi.ProductVersion);

Upvotes: 1

Related Questions