InstallShield 2015 » 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("IswiAuto22.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
InstallShield 2015 Help LibraryJune 2015 |
Copyright Information | Contact Us |