ISWiSetupType Object

InstallShield 2016 » Automation Interface

Project • This information applies to the following project types:

InstallScript
InstallScript MSI

ISWiSetupType represents a setup type belonging to your project. The setup type can be an existing one from the Setup Types view in the InstallShield user interface or one added by calling AddSetupType.

Use the project’s ISWiSetupTypes collection to access a specific setup type. You must specify either an index number or the setup type name for the Item property of ISWiSetupFiles. The setup type name is visible in the IDE in the Setup Types view's tree control.

Members

ISWiSetupType Object Members

Name

Type

Description

Name

Read-Only Property

Stores the name of the setup type.

Description

Read-Write Property

This string property specifies the setup type's description. (This description is displayed to end users during the installation process only if you call SdSetupTypeEx in your script.)

DisplayName

Read-Write Property

This string property specifies the name of this setup type as you would like it displayed to your users.

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"

    Dim pSetupType As ISWiSetupType

 

    Set pSetupType = pProj.ISWiSetupTypes("CSSaveSpace")

    pSetupType.DisplayName = "Client Setup - Save Space"

 

    pProj.SaveProject

    pProj.CloseProject