I'm creating a web site from which to download msi-files, and I want to "query" the .msi files for version information. (Note that I'm after the install kit version, not the version of files inside the install kit)
Specifically I want to be able to query the site from an application to check if there is a newer version of an install kit available for download, and I want a web page to display the version number of an msi-file available on the site.
I gave wrapping MsiGetFileVersion in msi.dll a quick try, but it doesn't give me anything. Might be that the below method is not the one I want.
[DllImport("msi.dll", CharSet = CharSet.Unicode)]
extern static public uint MsiGetFileVersion(string path, StringBuilder version,
ref uint versionSize, StringBuilder language, ref uint languageSize);