AddAdvancedFile Method

InstallShield 2016 » Automation Interface

Project • The AddAdvancedFile method applies to the following project types.

Basic MSI
InstallScript
InstallScript MSI
InstallScript Object

The AddAdvancedFile method creates an advanced file object with the specified name and (optionally) in the specified disk image in the current project.

Syntax

AddAdvancedFile (FileName As String, Optional DiskType As ISWiDiskType = edtDisk1) As ISWiAdvancedFile

Parameters

AddAdvancedFile Method Parameters

Parameter

Description

FileName

Pass the fully qualified filename for the advanced file that you want to add.

DiskType

This optional parameter specifies the Advanced Files folder in which you want to add the advanced file. Specify one of the following values.

edtDisk1 (1)—Add the advanced file to the Disk 1 folder. This is the default value for this optional parameter.
edtLastDisk (-1)—Add the advanced file to the Last Disk folder.
edtOther (0)—Add the advanced file to the Other folder.

Example

The following Visual Basic lines demonstrate this method:

    Dim pProj As ISWiProject

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

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

    Dim pAdvancedFile As ISWiAdvancedFile

 

    Set pAdvancedFile = pProj.AddAdvancedFile ("C:\My Files\MyLastDiskFile.ext", edtLastDisk)

 

    pProj.SaveProject

    pProj.CloseProject

Applies To

ISWiProject