RemoveComponentSubFolder Method
Project:This information applies to the following project types:
• | InstallScript |
• | InstallScript Object |
The RemoveComponentSubFolder method removes the specified component subfolder from the current component or component subfolder.
Syntax
RemoveComponentSubFolder (pComponentSubFolder As ISWiComponentSubFolder) As Long
Parameters
Parameter |
Description |
pComponentSubFolder |
Pass the subfolder object that you want to remove. |
Example
The following Visual Basic lines demonstrate the RemoveComponentSubFolder method:
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")
pComponent.RemoveComponentSubFolder pComponentSubFolder
pProj.SaveProject
pProj.CloseProject
Applies To
• | ISWiComponent |
• | ISWiComponentSubFolder |