ISWiCustomActions Collection

InstallShield 2022 » Automation Interface

Project:This information applies to the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module

The ISWiCustomActions collection contains all of the custom actions in the current project.

The VBScript example below displays a string with each custom action in the project:

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

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

 

    sNames = "This project contains the following custom actions:" & vbNewLine

 

    iCount = pProject.ISWiCustomActions.Count

    For i = 1 to iCount

        sNames = sNames & vbTab & pProject.ISWiCustomActions(i).Name & vbNewLine

    Next

    

    pProject.CloseProject

    

    MsgBox sNames

Members

ISWiCustomActions Collection Members

Name

Type

Description

Count

Read-Only Property

Returns the number of elements in the ISWiCustomActions collection.

Item

Read-Only Property

Provide the index number or name of the custom action in order to retrieve the ISWiCustomAction object.

The name of the custom action is case-sensitive—for example, “MyAction” and “myAction” are two different actions.

Item is the default property for ISWiCustomActions, which means that pProject.ISWiCustomActions.Item("Action1") is equivalent to pProject.ISWiCustomActions("Action1").

Applies To

ISWiProject