ISWiComponentSubFolder Object

Project:This information applies to the following project types:

InstallScript
InstallScript Object

The ISWiComponentSubFolder object represents a component subfolder belonging to the current component or component subfolder. The component subfolder can be an existing one from the InstallShield user interface’s Components view or one added by calling AddComponentSubFolder.

Use the project’s ISWiComponentSubFolders collection to access a specific component subfolder. You must specify either an index number or the component subfolder name for the Item property of ISWiComponentSubFolders.

Members

ISWiComponentSubFolder Object Members

Name

Type

Description

AddComponentSubFolder 

Method

Adds a subfolder to the component subfolder.

AddFile 

Method

Adds a file to the component subfolder.

DeleteFile 

Method

Deletes a file from the component subfolder.

ISWiComponentSubFolders 

Collection

Contains all of the subsubfolders associated with this component subfolders.

ISWiFiles 

Collection

Contains all of the files associated with this component subfolder.

Name

Read-Only Property

Stores the name of the component subfolder.

RemoveComponentSubFolder 

Method

Removes a subfolder from the component subfolder.

Example

The following Visual Basic code illustrates the use of the ISWiComponentSubFolder object:

    Dim pProj As ISWiProject

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

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

    Dim pFeature As ISWiFeature

    Dim pComponent As ISWiComponent

    Dim pComponentSubFolder As ISWiComponentSubFolder

 

    Set pFeature = pProj.ISWiFeatures.Item("MyFeature")

    Set pComponent = pFeature.ISWiComponents.Item("MyComp")

    Set pComponentSubFolder = pComponent.ISWiComponentSubFolders.Item("MyCompSubFolder")

    pComponentSubFolder.AddFile("C:\My Files\MyFile.ext")

 

    pProj.SaveProject

    pProj.CloseProject

Applies To

ISWiComponent