GetVersionInfoFromFile() public method

public GetVersionInfoFromFile ( string filePath ) : Tuple
filePath string
return Tuple
Exemplo n.º 1
0
        public InstalledProduct(string installLocation, InstalledProductLookUp lookUp)
        {
            InstallLocation = installLocation;
            var corePath = lookUp.GetCoreFilePathFromInstallation(InstallLocation);

            VersionInfo   = lookUp.GetVersionInfoFromFile(corePath);
            ProductName   = string.Format("{0} {1}.{2}", lookUp.ProductLookUpName, VersionInfo.Item1, VersionInfo.Item2);
            VersionString = string.Format("{0}.{1}.{2}.{3}", VersionInfo.Item1, VersionInfo.Item2, VersionInfo.Item3, VersionInfo.Item4);
        }
Exemplo n.º 2
0
        public InstalledProduct(string installLocation, InstalledProductLookUp lookUp)
        {
            var corePath = lookUp.GetCoreFilePathFromInstallation(installLocation);

            InstallLocation = File.Exists(corePath) ? Path.GetDirectoryName(corePath) : installLocation;

            VersionInfo   = lookUp.GetVersionInfoFromFile(corePath);
            ProductName   = string.Format("{0} {1}.{2}", lookUp.ProductLookUpName, VersionInfo.Item1, VersionInfo.Item2);
            VersionString = string.Format("{0}.{1}.{2}.{3}", VersionInfo.Item1, VersionInfo.Item2, VersionInfo.Item3, VersionInfo.Item4);
        }
Exemplo n.º 3
0
 public InstalledProduct(string installLocation, InstalledProductLookUp lookUp)
 {
     InstallLocation = installLocation;
     var corePath = lookUp.GetCoreFilePathFromInstallation(InstallLocation);
     VersionInfo = lookUp.GetVersionInfoFromFile(corePath);
     ProductName = string.Format("{0} {1}.{2}", lookUp.ProductLookUpName, VersionInfo.Item1, VersionInfo.Item2);
     VersionString = string.Format("{0}.{1}.{2}.{3}", VersionInfo.Item1, VersionInfo.Item2, VersionInfo.Item3, VersionInfo.Item4);
 }