InstallShield 2019 » Automation Interface
Project • The AddAdvancedFile method applies to the following project types.
• | Basic MSI |
• | InstallScript |
• | InstallScript MSI |
• | InstallScript Object |
The AddAdvancedFile method creates an advanced file object with the specified name and (optionally) in the specified disk image in the current project.
Syntax
AddAdvancedFile (FileName As String, Optional DiskType As ISWiDiskType = edtDisk1) As ISWiAdvancedFile
Parameters
Parameter |
Description |
|||||||||
FileName |
Pass the fully qualified filename for the advanced file that you want to add. |
|||||||||
DiskType |
This optional parameter specifies the Advanced Files folder in which you want to add the advanced file. Specify one of the following values.
|
Example
The following Visual Basic lines demonstrate this method:
Dim pProj As ISWiProject
Set pProj = CreateObject("IswiAutoAutomation Interface Version.ISWiProject")
pProj.OpenProject "C:\MySetups\Project1.ism"
Dim pAdvancedFile As ISWiAdvancedFile
Set pAdvancedFile = pProj.AddAdvancedFile ("C:\My Files\MyLastDiskFile.ext", edtLastDisk)
pProj.SaveProject
pProj.CloseProject
Applies To
• | ISWiProject |
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |