NAntContrib
Help
Function Reference
msi::is-installed |
v0.92 |
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>