AddSuitePackage Method (Advanced UI and Suite/Advanced UI)

InstallShield 2022 » Automation Interface » Advanced UI and Suite/Advanced UI

Project:This information applies to Suite/Advanced UI projects.

Edition:The Advanced UI project type is available in the InstallShield. The Suite/Advanced UI project type is available in the Premier edition of InstallShield. For information about the differences between these two project types, see Advanced UI Projects vs. Suite/Advanced UI Projects.

The AddSuitePackage method adds a package (an .msi package or an .msp patch) to a Windows Installer transaction in the project. It also adds the specified target file and options for adding additional files. Using this method is similar to adding a package to a transaction in the Packages view in InstallShield. You can set the properties of the new package with the ISWiSuitePackage object.

To add other types of packages to the project, see AddSuitePackage Method (Advanced UI and Suite/Advanced UI).

Syntax

AddSuitePackage (PackageType As ISWiSuitePackageType, TargetFileName As String, AdditionalFiles As ISWiAdditionalFiles) As ISWiSuitePackage

Parameters

AddSuitePackage Method Parameters

Parameter

Description

PackageType

Specify the type of package that you are adding to the transaction. Available options are:

esptMsi (1)—Windows Installer package (.msi)
esptMsp (2)—Windows Installer patch (.msp)

TargetFileName

Specify the file in the package (such as the .msi file) that the Advanced UI or Suite/Advanced UI installation should invoke.

AdditionalFiles

Specify the type of additional files that you want to add for the package. Available options are:

eaftNothing (0)—Add nothing. This package does not need any additional files.
eaftAdjacentFiles (1)—Add adjacent files; that is, add the files next to this package.
eaftSubFolders (2)—Add files in subfolders; that is, add the files below this package.
eaftAdjacentFilesAndSubFolders (3)—Add adjacent files and files in subfolders; that is, add the files next to and below this package.

Applies To

ISWiSuitePackage