DeleteAdvancedFile Method
InstallShield 2020 » Automation Interface
Project:This information applies to the following project types:
| • | Basic MSI | 
| • | InstallScript | 
| • | InstallScript MSI | 
| • | InstallScript Object | 
The DeleteAdvancedFile method deletes the specified advanced file from the current project.
Syntax
DeleteAdvancedFile (pAdvancedFile As ISWiAdvancedFile) As Long
Parameters
| Parameter | Description | 
| pAdvancedFile | Specify the advanced file object to be deleted. | 
Example
The following Visual Basic lines demonstrate the DeleteAdvancedFile 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.ISWiAdvancedFiles.Item(1)
pProj.DeleteAdvancedFile pAdvancedFile
pProj.SaveProject
pProj.CloseProject
Applies To
| • | ISWiProject |