3

When you right-click an .exe file, you can see various details, such as file description.

I'm looking for way to retrieve that data programmatically (preferably, from C#).

(Program's name, program's description, Vendor's name, Vendor's site etc)

alt text

Community
  • 1
  • 1
bohdan_trotsenko
  • 5,167
  • 3
  • 43
  • 70
  • 2
    Very similar to this post : http://stackoverflow.com/questions/220097/read-write-extended-file-properties-c. You could probably find some ideas there – Thomas Levesque Jun 12 '09 at 10:31
  • (@all: I'm not 100% sure they are the same thing, but if you want me to merge these two questions, please let me know) – Marc Gravell Jun 12 '09 at 10:45

1 Answers1

10

You can get a lot (but not all) of this via FileVersionInfo:

    FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(path);
    string company = fvi.CompanyName;
    string productName = fvi.ProductName;
    string productVer = fvi.ProductVersion;
    // etc
Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900