DeleteSetupFile Method

InstallShield 2016 » Automation Interface

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

Basic MSI
InstallScript
InstallScript MSI
InstallScript Object

The DeleteSetupFile method deletes the specified support file from the current project.

Syntax

DeleteSetupFile (pSetupFile As ISWiSetupFile) As Long

Parameters

DeleteSetupFile Method Parameters

Parameter

Description

pSetupFile

The support file object to be deleted.

Example

The following Visual Basic lines demonstrate the DeleteSetupFile 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.ISWiSetupFiles.Item("MySupportFile.abc")

pProj.DeleteSetupFile pSetupFile

 

pProj.SaveProject

pProj.CloseProject

Applies To

ISWiProject