'KCMLGetInstalledProductInfo(ProductCode$, Product)
Given a product code GUID detect if a product is installed and return information about it.
Arguments
| STR() | ProductCode$ | [in] | Product code GUID of product. |
| DIM() | Product | [out] | Returned information if the product is installed. |
Returns
KCML_MSI_ENUM
Syntax
The following definition is built into KCML. You do not have to include it in your own code.
$DECLARE 'KCMLGetInstalledProductInfo(STR(), RETURN DIM())
Remarks
This function tests if a product is installed and returns information about the installed product
The product code GUID can be obtained from an MSI file using KCMLGetMSIInfo.
Example
DIM info$_KCML_MSIVERSION
DIM result
result = 'KCMLGetInstalledProductInfo("{0476fd89-1988-4a84-81e9-a7e1b3772ff5}", BYREF info$)
SELECT CASE result
CASE _KCML_MSI_SUCCESS
REM Product is installed info$ contains details of it
CASE _KCML_MSI_INVALIDARG
REM Invalid arg. Product code should be properly formatted GUID
CASE _KCML_MSI_INSTALLEDOTHER
REM Product is installed for another user
CASE _KCML_MSI_ADVERTISED
REM Product is advertised
CASE _KCML_MSI_NOTINSTALLED
REM Product is not installed
END SELECT
Further Information
| Introduced | KCML 7.18 |
| Compatibility | KClient |
See Also