InstallShield 2016 » Automation Interface
Project • This information applies to the following project types:
• | Basic MSI |
• | InstallScript MSI |
Call the AddUpgradeTableEntry method to create a new ISWiUpgradeTableEntry item and return a handle to that object.
Syntax
AddUpgradeTableEntry()
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 pTableEntry
set pTableEntry = pProject.AddUpgradeTableEntry()
pTableEntry.UpgradeCode ="{12345678-1234-1234-1234-123456789012}"
pTableEntry.VersionMin = "1.0"
pTableEntry.VersionMax = "2.0"
pTableEntry.Language = "0"
pTableEntry.Remove = ""
pTableEntry.ActionProperty = "ACTIONPROP_AUTOMATION"
pTableEntry.Attributes = 5
'###############################################
'To find and delete an existing entry
set pTableEntry =pProject.IswiUpgradeTableEntries("{12345678-1234-1234-1234-123456789012}")
pTableEntry.Delete
pProject.SaveProject
pProject.CloseProject
Applies To
• | ISWiProject |
InstallShield 2016 Help LibraryAugust 2016 |
Copyright Information | Flexera Software |