C# Class DynamoInstallDetective.InstalledProductLookUp

Implements basic look up algorithm to get product installations using registry keys
Inheritance: IProductLookUp
显示文件 Open project: DynamoDS/Dynamo Class Usage Examples

Public Methods

Method Description
ExistsAtPath ( string basePath ) : bool
GetCoreFilePathFromInstallation ( string installPath ) : string
GetInstallLocationFromProductCode ( string productCode, string &productName ) : string
GetInstallLocationFromProductName ( string name ) : string
GetProductFromInstallPath ( string path ) : IInstalledProduct
GetProductFromProductCode ( string productCode ) : IInstalledProduct
GetProductFromProductName ( string name ) : IInstalledProduct
GetProductNameList ( ) : IEnumerable
GetVersionInfoFromFile ( string filePath ) : Tuple
InstalledProductLookUp ( string lookUpName, string>.Func fileLocator ) : System
InstalledProductLookUp ( string lookUpName, string fileLookup ) : System

Implements a product look up algorithm based on registry key.

Private Methods

Method Description
GetDisplayName ( RegistryKey key ) : string
GetInstallLocation ( RegistryKey key ) : string
GetProductFromInstallPath ( string path, string productName ) : InstalledProduct
OpenKey ( string key ) : RegistryKey

Method Details

ExistsAtPath() public method

public ExistsAtPath ( string basePath ) : bool
basePath string
return bool

GetCoreFilePathFromInstallation() public method

public GetCoreFilePathFromInstallation ( string installPath ) : string
installPath string
return string

GetInstallLocationFromProductCode() public method

public GetInstallLocationFromProductCode ( string productCode, string &productName ) : string
productCode string
productName string
return string

GetInstallLocationFromProductName() public method

public GetInstallLocationFromProductName ( string name ) : string
name string
return string

GetProductFromInstallPath() public method

public GetProductFromInstallPath ( string path ) : IInstalledProduct
path string
return IInstalledProduct

GetProductFromProductCode() public method

public GetProductFromProductCode ( string productCode ) : IInstalledProduct
productCode string
return IInstalledProduct

GetProductFromProductName() public method

public GetProductFromProductName ( string name ) : IInstalledProduct
name string
return IInstalledProduct

GetProductNameList() public method

public GetProductNameList ( ) : IEnumerable
return IEnumerable

GetVersionInfoFromFile() public method

public GetVersionInfoFromFile ( string filePath ) : Tuple
filePath string
return Tuple

InstalledProductLookUp() public method

public InstalledProductLookUp ( string lookUpName, string>.Func fileLocator ) : System
lookUpName string
fileLocator string>.Func
return System

InstalledProductLookUp() public method

Implements a product look up algorithm based on registry key.
public InstalledProductLookUp ( string lookUpName, string fileLookup ) : System
lookUpName string Product name to lookup
fileLookup string file name pattern to lookup
return System