ISWiSequence Collection

InstallShield 2016 » Automation Interface

Project • This information applies to the following project types:

Basic MSI
InstallScript MSI

The ISWiSequence collection is a virtual collection that contains all of the actions of the current project, sorted by sequence number.

Members

ISWiSequence Collection Members

Name

Type

Description

Count

Read-Only Property

Use this property to return the total number of elements in the ISWiSequence collection.

InsertCustomAction

Method

Use this method to insert a custom action into the selected sequence. This method returns an ISWiSequenceRecord object.

Item

Read-Only Property

Provide the index number or name of an action in order to retrieve its ISWiSequenceRecord object.

The name of the action is case-sensitive. That is, “ThisAction” and “thisAction” are two different actions.

Item is the default property for ISWiSequence, which means that pProject.InstallUISequence.Item("ThisAction") is equivalent to pProject.InstallUISequence("ThisAction").

RemoveSequenceRecord

Method

Use this method to remove an item from a sequence in the project.

Example

The VBScript example below displays a string with each action name and sequence number in the project’s Installation User Interface sequence:

    Dim pProject

    Set pProject = CreateObject("IswiAutoAutomation Interface Version.ISWiProject")

    pProject.OpenProject "C:\MySetups\YourProject.ism", True ' open read-only

 

    Dim sNames

    sNames = "The Installation UI sequence contains the following actions:" & vbNewLine & vbTab

 

    For i = 1 to pProject.InstallUISequence.Count

        sNames = sNames & pProject.InstallUISequence.Item(i).Name & " " & _

                 pProject.InstallExecuteSequence.Item(i).Sequence & vbNewLine & vbTab

    Next

 

    pProject.CloseProject

 

    MsgBox sNames

Applies To

ISWiProject