I know how to get the version of an executable application or dll. However, I need to find the properties of a non-executing application.
I have a small program to set file associations for my main application. For users of older versions, there is no point, because the application does not accept arguments at startup. Therefore, when starting the file associator, it first checks to see if it can find the main application. If possible, I want to check the properties without executing it. If the version is earlier than one, which can take arguments, I want to inform my user about the need for updating, and not proceed with setting up the association.
I looked at System.IO.FileInfo, but it does not seem to contain any version information.
thanks
source share