ISWiSetupTypes Collection

InstallShield 2016 » Automation Interface

Project • This information applies to the following project types:

InstallScript
InstallScript MSI

ISWiSetupTypes is a collection that contains every setup type (as an ISWiSetupType object) in your project.

Members

ISWiSetupTypes Collection Members

Name

Type

Description

Count

Read-Only Property

Use this property to return the total number of setup types in the ISWiSetupTypes collection.

Item

Read-Only Property

Provide the index number or name of the setup type to retrieve the ISWiSetupType object. For example, the following statements create references to the first setup type in the collection and the setup type named CSSaveSpace:

    Set pSetupFile1 = pProj.ISWiSetupTypes.Item(1)

    Set pSetupFile2 = pProj.ISWiSetupTypes.Item("CSSaveSpace")

Item is the default property for ISWiSetupTypes, which means that pProj.ISWiSetupTypes.Item("CSSaveSpace") is equivalent to pProj.ISWiSetupTypes("CSSaveSpace").

Example

The following Visual Basic code illustrates how you would set a property for a specific setup type:

    Dim pProj As ISWiProject

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

    pProj.OpenProject "C:\MySetups\Project1.ism"

 

    pProj.ISWiSetupTypes("CSSaveSpace").DisplayName = "Client Setup - Save Space"

 

    pProj.SaveProject

    pProj.CloseProject

Applies To

ISWiProject