AddSetupFile Method

InstallShield 2022 » Automation Interface

Project:The AddSetupFile method applies to the following project types.

Basic MSI
InstallScript
InstallScript MSI
InstallScript Object

The AddSetupFile method creates a support file with the specified name in the current project.

Syntax

AddSetupFile (FileName As String) As ISWiSetupFile

Parameters

AddSetupFile Method Parameters

Parameter

Description

FileName

Pass the fully qualified file name for the support file that you want to add.

Example

The following Visual Basic lines demonstrate the AddSetupFile method:

    Dim pProj As ISWiProject

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

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

    Dim pSetupFile As ISWiSetupFile

 

    Set pSetupFile = pProj.AddSetupFile ("C:\My Files\MySupportFile.ext")

 

    pProj.SaveProject

    pProj.CloseProject

Applies To

ISWiProject