DeletePathVariable 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 DeletePathVariable method to delete a path variable from your project. Using this method is similar to deleting a path variable from the Path Variables view in InstallShield.

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

DeletePathVariable (pPathVar ISWiPathVariable) As Long

Parameters

DeletePathVariable Method Parameters

Parameter

Description

pPathVar

Pass the ISWiPathVariable object for the path variable that you want to delete.

Applies To

ISWiProject