AddSetupFile Method (Advanced UI and Suite/Advanced UI)
InstallShield 2020 » Automation Interface » Advanced UI and Suite/Advanced UI
Project:This information applies to the following project types:
• | Advanced UI |
• | Suite/Advanced UI |
Edition:The Advanced UI project type is available in the Professional edition of 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 AddSetupFile method adds a support file with the specified name to the project. Using this method is similar to adding a path variable in the Support Files view in InstallShield. You can set the properties of the new path variable with the ISWiSetupFile object.
Syntax
AddSetupFile (FileName As String) As ISWiSetupFile
Parameters
Parameter |
Description |
FileName |
Specify the fully qualified path and file name of the support file that you want to add. |
Example
The following Visual Basic lines demonstrate this method:
Dim pProj As ISWiProject
Set pProj = CreateObject("ISWiAutoSuiteAutomation Interface Version.ISWiProject")
pProj.OpenProject "C:\MySetups\Project1.issuite"
Dim pSetupFile As ISWiSetupFile
Set pSetupFile = pProj.AddSetupFile ("C:\My Files\MySupportFile.ext")
pProj.SaveProject
pProj.CloseProject
Applies To
• | ISWiProject |