AddPathVariable Method

InstallShield 2016 » Automation Interface

Project • This information applies to the following project types:

Basic MSI
DIM
InstallScript
InstallScript MSI
InstallScript Object
Merge Module

Call the AddPathVariable method to add a path variable to your project. Using this method is similar to adding a path variable in the Path Variables view in InstallShield. You can set the properties of the new path variable with the ISWiPathVariable object.

Important • Predefined path variables cannot be modified or deleted. If you attempt to do so, exception error 3142 occurs. For more information, see Predefined Path Variables.

Syntax

AddPathVariable (sName As String) As ISWiPathVariable

Parameters

AddPathVariable Method Parameters

Parameter

Description

sName

Specifies the name of the path variable.

Applies To

ISWiProject