Link to home
Start Free TrialLog in
Avatar of alaran
alaranFlag for Norway

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?



[DllImport("msi.dll", CharSet = CharSet.Unicode)]
extern static public uint MsiGetFileVersion(string path, StringBuilder version,
			ref uint versionSize, StringBuilder language, ref uint languageSize);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of alaran
alaran
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of alaran

ASKER