Set-Label

Defines a label within the current installation package. The label can be used in conjunction with Invoke-Goto to change the sequential processing of an installation package.

Note: The Invoke-Goto and Set-Label commands are provided mainly for reasons of compatibility with DSM packages. PowerShell does not implement this concept of flow control and therefore the use of these commands in new packages created with the PPB is not recommended. Use loop constructs for flow control.



Settings:

  • Name
    Name of the label to be defined.


Example:

This command defines the jump label "LOOP":


Corresponds to DSM eScript command:

  • Label (:)


See also: