|

ResultVariable


When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.


See also: Related Actions


image

image

MSI.EnumPatches

OverviewExamples

table MSI.EnumPatches ( string ProductCode )


De s cr ip t ion


Calls the MsiEnumPatches function to enumerate all of the patches that have been applied to a product, returning the patch code GUIDs for each patch that has been applied, and a list of transforms from each patch that apply to the product.


image

Note: Patches may have many transforms only some of which are applicable to a particular product.


P arame t er s


ProductCode


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


Re t u r n s


(table) Returns a numerically indexed table of tables containing the indexes below. If this action fails, or no patches are found, nil is returned.



KEY


TYPE DESCRIPTION


PatchCode


string


The patch code GUID.


TransformList


string


The list of transforms in the patch that are applicable to the product. These are returned in the same format as the value of the TRANSFORMS property (a semicolon ';' delimited string).

You can use Application.GetLastError to determine whether this action failed, and why.


|