AddFile Method

Project:This information applies to the following project types:

Basic MSI
DIM
InstallScript
InstallScript MSI
InstallScript Object
Merge Module

Project-specific differences are noted where appropriate.

Call AddFile to add a file to a specified component or, in InstallScript projects, a component subfolder. The files that are added with this method have static file links.

Syntax

AddFile (FileName As String) As ISWiFile

Parameters

AddFile Method Parameters

Parameter

Description

FileName

Pass the fully qualified file name for the individual file that you want to add to this component or component subfolder.

Example

The following Visual Basic example adds the file MyFile.exe to the component MyComponent:

    m_ISWiFeature.ISWiComponents("MyComponent").AddFile "C:\Build 141\MyFile.exe"

Applies To

ISWiComponent 
ISWiComponentSubFolder