Deployment Tools Foundation
GetFileVersion Method (path)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► GetFileVersion(String)
Gets the version string of the path specified using the format that the installer
expects to find it in in the database.
Declaration Syntax
Parameters
- path (String)
- Path to the file
Return Value
Version string in the "#.#.#.#" format, or an empty string if the file
does not contain version information
Remarks
Win32 MSI API: MsiGetFileVersion
Exceptions
Exception | Condition |
---|---|
FileNotFoundException | the file does not exist or could not be read |