NAntContrib Help Function Reference msi::get-product-code | v0.93-nightly-2012-08-10 |
[This is preliminary documentation and subject to change.]
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>