NAntContrib Help Function Reference msi::get-product-code | v0.91 |
Returns the product code of the specified Windows Installer database.
string msi::get-product-code(databasePath)
Name | Type | Description |
---|---|---|
databasePath | string | The path of the Windows Installer database. |
The installer database could not be opened.
-or-
The product code property is not available in the installer database.
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>