AddEnvironmentVar Method
InstallShield 2024 » Automation Interface
Project:
| • | 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
|
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 |