InstallShield 2016 » Automation Interface » ISWiComponent Object and ISWiComponentSubFolder Object
Project • This information applies to the following project types:
• | Basic MSI |
• | DIM |
• | InstallScript |
• | InstallScript MSI |
• | InstallScript Object |
• | Merge Module |
The ISWiFiles collection contains all of the files associated with a specified component or, in InstallScript projects, a component subfolder. ISWiFiles contains several read-write properties that allow you to set component properties and file attributes as you would in the IDE.
The following Visual Basic code illustrates how you would set a property for a specific file in a component. For the purposes of this example, assume that the variable m_oMyComp already has a reference to a component.
m_oMYComp.ISWiFiles("F1028_MyFile.dll").Hidden = True
Members
Name |
Type |
Description |
Count |
Read-Only Property |
Use this property to return the total number of elements in the ISWiFiles collection. |
Item |
Read-Only Property |
Provide the index number or file key of the file in order to retrieve the ISWiFile object. You cannot use the file name; you must specify the file key. You can view this value in the Direct Editor view (in the File column of the File table) or, in Windows Installer–based projects, the Key column of a component's file list. Be aware that file keys are subject to change when the files are dynamically linked. Item is the default property for ISWiComponents, which means that m_ISWiComponent.ISWiFiles.Item("F1036_MyFile.exe") is equivalent to m_ISWiComponent.ISWiFiles("F1036_MyFile.exe"). |
Applies To
• | ISWiComponent |
InstallShield 2016 Help LibraryAugust 2016 |
Copyright Information | Flexera Software |