AddAutomaticUpgradeEntry Method

InstallShield 2016 » Automation Interface

Project • This information applies to the following project types:

Basic MSI
InstallScript MSI

Call the AddAutomaticUpgradeEntry method to create a new IswiAutomaticUpgradeEntry item and return a handle to that object.

Syntax

AddAutomaticUpgradeEntry()

Example

The following Visual Basic lines demonstrate this method:

'###############################################

'# THIS SAMPLE WILL NOT EXECUTE PROPERLY WITHOUT A VALID PROJECT PATH

'###############################################

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

pProject.OpenProject("C:\Documents and Settings\Testlab\My Documents\MySetups\your project name-21.ism")

 

 

'###############################################

'To create a new entry

 

dim pAutoEntry

set pAutoEntry = pProject.AddAutomaticUpgradeEntry()

 

pAutoEntry.Name ="AutoEntry"

pAutoEntry.ReleaseFlags = "AutoFlag"

pAutoEntry.UpgradedSetupPath = "AutoPath"

 

'###############################################

'To find and delete an existing entry

 

set pAutoEntry = nothing

set pAutoEntry = pProject.IswiAutoUpgradeEntries("AutoEntry")

pAutoEntry.Delete

 

pProject.SaveProject

pProject.CloseProject

Applies To