AddSetupType Method

InstallShield 2022 » Automation Interface

Project:This information applies to the following project types:

InstallScript
InstallScript Object

The AddSetupType method creates a setup type with the specified name in the current project.

Syntax

AddSetupType (Name As String) As ISWiSetupType

Parameters

AddSetupType Method Parameters

Parameter

Description

Name

Pass the name for the setup type that you want to add. The name should be the text that you want to use as the display name.

The automation interface automatically generates a valid primary key for the new setup type based on the name that you specify for this parameter.

Example

The following Visual Basic lines demonstrate the AddSetupType method:

    Dim pProj As ISWiProject

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

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

    Dim pSetupType As ISWiSetupType

 

    Set pSetupType = pProj.AddSetupType ("Client Setup - Save Space")

 

    pProj.SaveProject

    pProj.CloseProject

Applies To

ISWiProject