ISWiUpgradeTableEntries Collection

InstallShield 2022 » Automation Interface

Project:This information applies to the following project types:

Basic MSI
InstallScript MSI

The ISWiUpgradeTableEntries collection contains all the static major upgrade items, as they are defined in the Upgrades view as well as the Upgrade table in the Direct Editor.

Members

ISWiUpgradeTableEntries Collection Members

Name

Type

Description

Count

Read-Only Property

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

Item

Read-Only Property

Provide the index number or upgrade code in order to retrieve the ISWiUpgradeTableEntries items.

Item is the default property for ISWiUpgradeTableEntries, which means that m_ISWiProject.ISWiUpgradeTableEntries.Item("12345678-1234-1234-1234-123456789012") is equivalent to m_ISWiProject.ISWiUpgradeTableEntries("12345678-1234-1234-1234-123456789012").

Example

Dim oProj As ISWiProject

Dim oUpgradeItem As ISWiUpgradeTableEntry

 

Set oProj = New ISWiProject

oProj.OpenProject "C:\MySetup.ism"

 

For Each oUpgradeItem In oProj.ISWiUpgradeTableEntries

    oUpgradeItem.Language = "1033"

Next

 

oProj.SaveProject

oProj.CloseProject

To target a specific item, replace the For Each loop in the above code with this code:

For Each oUpgradeItem In oProj.ISWiUpgradeTableEntries

    If oUpgradeItem.UpgradeCode = "{12345678-1234-1234-1234-123456789012}" Then

        oUpgradeItem.Language = "1033"

    End If

Next

Applies To

ISWiProject