NAntContrib Help Function Reference msi::is-installed | v0.91-rc1 |
[This is preliminary documentation and subject to change.]
Returns a value indicating whether a product with the specified product code
is installed.
bool msi::is-installed(productCode)
Name | Type | Description |
---|---|---|
productCode | string | The product code of the product to check. |
Retrieves the product code of a given installer database, and fails the build if the product is not installed.
<property name="office.productcode" value=${msi::get-product-code('Office.msi')}" /> <fail unless="${msi::is-installed(office.productcode)}">Please install Office first.</fail>