alaran
asked on
Programatically reading .msi build version
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.
Any ideas?
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.
Any ideas?
[DllImport("msi.dll", CharSet = CharSet.Unicode)]
extern static public uint MsiGetFileVersion(string path, StringBuilder version,
ref uint versionSize, StringBuilder language, ref uint languageSize);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
http://msdn2.microsoft.com/en-us/library/aa369432(VS.85).aspx