AddEnvironmentVar Method

InstallShield 2016 » Automation Interface

Project • The AddEnvironmentVar method applies to the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module

Call AddEnvironmentVar to add an environment variable to a component.

Syntax

AddEnvironmentVar (sName As String) As ISWiEnvironmentVar

Parameters

AddEnvironmentVar Method Parameters

Parameter

Description

sName

Specifies the name of the environment variable.

Example

The following Visual Basic example adds the environment variable MyEnvironment to the component MyComponent:

m_ISWiFeature.ISWiComponents("MyComponent").AddEnvironmentVar "MyEnvironment"

Applies To

ISWiComponent