Méthode | Description | |
---|---|---|
DirExists ( string dir ) : bool |
Determines whether the dir exists.
|
|
FileExists ( string file ) : bool |
Determines whether the file exists.
|
|
GetProductCode ( string name ) : string[] |
Gets the 'product code' of the installed product.
|
|
GetProductName ( string productCode ) : string |
Gets the 'product name' of the installed product.
|
|
GetProducts ( ) : string[] |
Gets array of 'product codes' (GUIDs) of all installed products.
|
|
GetRegValue ( |
Gets the registry value.
|
|
IniFileToDictionary ( string iniFile, |
Converts INI file content into dictionary.
|
|
IniFileValue ( string file, string section, string field, |
Returns INI file the field value. It returns null if file or the field not found.
|
|
IsProductInstalled ( string productCode ) : bool |
Determines whether the product is installed.
|
|
RegKeyExists ( |
Determines whether the registry key exists.
|
Méthode | Description | |
---|---|---|
IniToDictionary ( string iniFileContent ) : Dictionary |
||
MsiEnumProducts ( int iProductIndex, StringBuilder lpProductBuf ) : int | ||
MsiGetProductInfo ( string product, string property, [ valueBuf, |
public static DirExists ( string dir ) : bool | ||
dir | string | The directory path. |
Résultat | bool |
public static FileExists ( string file ) : bool | ||
file | string | The file path. |
Résultat | bool |
public static GetProductCode ( string name ) : string[] | ||
name | string | The product name. |
Résultat | string[] |
public static GetProductName ( string productCode ) : string | ||
productCode | string | The product code. |
Résultat | string |
public static GetRegValue ( |
||
root | The root. | |
keyPath | string | The key path. |
valueName | string | Name of the value. |
Résultat | object |
public static IniFileToDictionary ( string iniFile, |
||
iniFile | string | The INI file. |
encoding | The encoding. | |
Résultat | Dictionary |
public static IniFileValue ( string file, string section, string field, |
||
file | string | The INI file path. |
section | string | The section. |
field | string | The field. |
encoding | The encoding. | |
Résultat | string |
public static IsProductInstalled ( string productCode ) : bool | ||
productCode | string | The product code. |
Résultat | bool |
public static RegKeyExists ( |
||
root | The root. | |
keyPath | string | The key path. |
Résultat | bool |