The Sequence method of the Session object opens a query on the specified table, ordering the actions by the numbers in the Sequence column. For each row fetched, the DoAction method is called, provided that any supplied condition expression does not evaluate to False. Returns an enumeration msiDoActionStatusEnum, as described in the DoAction method.
Syntax
Script
Sequence(
table
)
Parameters
- table
-
Required string name of the table to use for sequencing.
Return Value
This method does not return a value.Remarks
This method is normally called internally by top-level actions.
An action sequence containing actions that update the system, such as the InstallFiles and WriteRegistryValues actions, cannot be run by calling the Sequence method. The exception to this rule is if the Sequence method is called from a custom action that is scheduled in the InstallExecuteSequence table between the InstallInitialize and InstallFinalize actions. Actions that do not update the system, such as AppSearch or CostInitialize, can be called.
Requirements
Version | Windows Installer 5.0 on Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003, Windows XP, and Windows 2000 |
---|---|
DLL | Msi.dll |
IID | IID_ISession is defined as 000C109E-0000-0000-C000-000000000046 |
Send comments about this topic to Microsoft
Build date: 8/13/2009
© 2009 Microsoft Corporation. All rights reserved.