Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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. |
Результат | bool |
public static FileExists ( string file ) : bool | ||
file | string | The file path. |
Результат | bool |
public static GetProductCode ( string name ) : string[] | ||
name | string | The product name. |
Результат | string[] |
public static GetProductName ( string productCode ) : string | ||
productCode | string | The product code. |
Результат | string |
public static GetProducts ( ) : string[] | ||
Результат | string[] |
public static GetRegValue ( |
||
root | The root. | |
keyPath | string | The key path. |
valueName | string | Name of the value. |
Результат | object |
public static IniFileToDictionary ( string iniFile, |
||
iniFile | string | The INI file. |
encoding | The encoding. | |
Результат | 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. | |
Результат | string |
public static IsProductInstalled ( string productCode ) : bool | ||
productCode | string | The product code. |
Результат | bool |
public static RegKeyExists ( |
||
root | The root. | |
keyPath | string | The key path. |
Результат | bool |