InstallShield 2016 » Automation Interface
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript Object |
The AddComponentSubFolder method adds a component subfolder to the current component or component subfolder.
Syntax
AddComponentSubFolder (Name As String) As ISWiComponentSubFolder
Parameters
Parameter |
Description |
Name |
Pass the name for the subfolder that you want to add. |
Example
The following Visual Basic lines demonstrate the AddComponentSubFolder 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.AddComponentSubFolder("MyCompSubFolder")
pProj.SaveProject
pProj.CloseProject
Applies To
• | ISWiComponent |
• | ISWiComponentSubFolder |
InstallShield 2016 Help LibraryAugust 2016 |
Copyright Information | Flexera Software |