MSI.OpenProduct

number MSI.OpenProduct ( 

string ProductCode )

Description

Calls the MsiOpenProduct function to open a product for use with the actions that access the product database. You must call the MSI.CloseHandle action with the handle when it is no longer needed.

Parameters

ProductCode

(string) The "product code" of the product you want to open. This string must be an identifier string enclosed in curly braces, for example: "{78B82B0B-9AD9-40C0-B994-F72C21B52723}".

Returns

(number) The handle to the MSI product. If this action fails, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions