Use of variables

In many commands you can use variables - as known from DSM - to keep the script flexible and to be able to react dynamically to situations. Since the Packaging PowerBench generates PowerShell code, we have decided to deviate from the representation of variables known from DSM - namely, enclosing the variable name in percent signs - and use the notation with a leading $ sign known from PowerShell.

Since in this case the end of the variable name is not clearly evident, we enclose the name in curly brackets.

Therefore, to use variables, enter the $ sign in any field of any of the command dialogs, whereupon a drop-down list of known variables is displayed. When you continue writing, the system will suggest the variables that match your input, which you can then accept by pressing TAB, ENTER or clicking with the mouse. To simplify your input, you can do without the opening curly bracket when typing and continue with the first character of the variable name. The Packaging PowerBench recognizes by the $ sign that you want to use a variable and automatically completes the bracket.

Note: You can change the appearance of variables in the configuration file "PackagingPowerBench.exe.config" by entering one of the following values in the "ParameterInputTextMode" entry: "PowerShell", "NiVariable", "SimplePowerShell" (this is the default value), "SimpleDollarOnly".