Summary
Returns the product code of the specified Windows Installer
database.
Syntax
[Function("get-product-code")]
public string GetProductCode(string databasePath)
Examples
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>
Attributes
Type |
Description |
Function |
|
Parameters
Name |
Type |
Description |
databasePath |
string |
The path of the Windows Installer database. |
Return Value
Type |
Description |
string |
The product code of the specified Windows Installer database.
|