ISWiPatchConfigs Collection

InstallShield 2022 » Automation Interface

Project:This information applies to the following project types:

Basic MSI
InstallScript MSI

Members

ISWiPatchConfigs Collection Members

Name

Type

Description

Count

Read-Only Property

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

Item

Read-Only Property

Provide the index number or name of the patch configuration in order to retrieve the ISWiPatchConfig Object.

The name of the patch configurations is case-sensitive—“Patch One” and “Patch one” are two different configurations.

Item is the default property for ISWiPatchConfigs, which means that pProject.ISWiPatchConfigs.Item("Patch1") is equivalent to pProject.ISWiPatchConfigs ("Patch1").

Example

The VBScript example below simply displays a string with each patch configuration in the project:

    Dim pProject

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

    pProject.OpenProject "C:\MySetups\Vegetarian.ism", True

 

    Dim sNames

    sNames = "This project contains the following patch configurations: " & vbNewLine & vbTab

 

    Dim pPatchConfigs

    For Each pPatchConfigs In pProject.ISWiPatchConfigs

     sNames = sNames & pPatchConfigs.Name & vbNewLine & vbTab

    Next

 

    pProject.CloseProject

 

    WScript.Echo sNames

    Object

The following line illustrates how to access a particular patch configuration:

    Set pPatchConfig = pISWiProj.ISWiPatchConfigs.Item("Patch 1.1")

Applies To

ISWiProject