ISWiChainPackageDatas Collection

InstallShield 2025 » Automation Interface

Project: This information applies to the following project types:

Basic MSI
InstallScript MSI

Contains collection of data pertaining to all chained.msi packages in the current project

Members

ISWiChainPackageDatas Collection Members

Name

Type

Description

Count

Read-Only Property

Use this property to return the total number of elements in the ISWiChainPackageDatas collection.

Item

Read-Only Property

Provide the index number or name of the chained.msi package in order to retrieve the ISWiChainPackageData Object.

The name of the chained.msi package is case-sensitive—“Chain Package One” and “Chain Package one” are two different configurations.

Item is the default property for ISWiChainPackageDatas Ccollection, which means that pProject.ISWiChainPackageDatas.Item("PackageData1") is equivalent to pProject.ISWiChainPackageDatas ("PackageData1").

Example

The VBScript example below displays that how to retrieve data pertaining to a specific chained .msi package in the project:

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

    pProject.OpenProject "C:\MySetups\MyProject.ism", True ' open read-only

    

    sNames = "This project contains the following:" & vbNewLine

    iCount = pProject.ISWiChainPackages.Count

    For i = 1 to iCount

        Set pChainPackage = pProject.ISWiChainPackages.Item(i)

        sNames = sNames & vbTab & pChainPackage.DisplayName & vbNewLine

        sNames = sNames & vbTab & "This project chain package contains the following files and folder:" & vbNewLine

        iCount2 = pChainPackage.ISWiChainPackageDatas.Count

        For j = 1 to iCount2

            Set pPackageData = pChainPackage.ISWiChainPackageDatas.Item(j)

            sNames = sNames & vbTab & pPackageData.ISBuildSourcePath & vbNewLine

        Next

    Next

     

     MsgBox sNames

Applies To

ISWiProject