AddTemporalVariable

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index

Adds a temporary variable. Variable functions only during the process of installation or uninstallation of a catalog entry (they are not persistent). Those variables can only be used in the parameters of an action (like a macro).

For instance:

$(Test)

Parameters

  • Parameter 1: String. A temporal variable name to add.
  • Parameter 2: String. Temporal variable value to add. Macros are allowed.
  • Parameter 3: Boolean. Optional. Specifies if GetIt must overwrite an existing variable or not.
    • False: will not update an existing environment variable.
    • True: will update an existing environment variable.
    • The default value is False.
  • Parameter 4: Boolean. Optional. Specifies if GetIt must expand only temporal variables or not on the variable value (parameter 2).
    • The default value is False.

Examples

  • Example 1:
AddEnvironmentVariable("DemosDir", "$(BDSCOMMONDIR)\Samples\");
  • Example 2:
AddEnvironmentVariable("DemosDir", "$(BDSCOMMONDIR)\Samples\", "True");
  • Example 3:
AddEnvironmentVariable("DemosDir", "$(BDSCOMMONDIR)\$(OtherTmpVar)\", "True", "True");

See Also