'KCMLGetMSIInfo(Path$, Product)
Get information about a MSI install file.
Arguments
| STR() | Path$ | [in] | Path to install file on client. |
| DIM() | Product | [out] | Returned information. |
Returns
KCML_MSI_ENUM
Syntax
The following definition is built into KCML. You do not have to include it in your own code.
$DECLARE 'KCMLGetMSIInfo(STR(), RETURN DIM())
Remarks
This function attempts to open the specified MSI install file and return information about the contained product
Example
DIM info$_KCML_MSIVERSION
DIM result
result = 'KCMLGetMSIInfo("c:/somepath/product.msi", BYREF info$)
SELECT CASE result
CASE _KCML_MSI_SUCCESS
REM info$ contains details of the product
CASE _KCML_MSI_FILENOTFOUND
REM msi file not found
CASE _KCML_MSI_OPENFAILED
REM Could not open file. May be in use or not a valid MSI file
END SELECT
Further Information
| Introduced | KCML 7.18 |
| Compatibility | KClient |
See Also