The System Variables panel lets you define variables that can be used to replace paths, names, and so forth as you enter information.
You can define system variables at three levels:
Management Zone: The system variables are inherited by the following: device folders, devices, and bundles.
Device Folder: The system variables are inherited by all devices contained within the folder or its subfolders.
Device or Bundle: The system variables apply only to the device or bundle for which they are configured.
The following table lists the tasks you can perform to manage the system variables:
The following examples illustrate a few uses of system variables:
Specifying Paths and Filenames in Actions: When you create an Edit INI File action, for example, you specify a .ini file and configure the changes to be performed on that file. During the creation process, you can specify the full path to the file (for example, C:\Program Files\OpenOffice.org 2.0\program\setup.ini).
Instead of specifying the entire path and filename, you could create a system variable. For example, the name of the variable could be “OpenOffice INI” and the value could be the full path to the file. Now, instead of specifying the full path and filename when you are creating the action, you could type ${OpenOffice INI} in the field.
An advantage of using a system variable rather than typing the full path and filename is that you could specify this particular .ini file in many different types of actions. Suppose that the location of the .ini file changes. Instead of editing the path in each action, you can edit the path in the system variable and all the actions would still point to the correct path.
You could generalize the path even more by creating a system variable named “ProgramFiles” with the value of C:\program files. In the future, when you specify a path, you can type ${ProgramFiles} and then specify the remaining path to the specific file. For example, ${ProgramFiles}\OpenOffice 2.0\program\setup.ini. Again, if the path to the C:\program files directory changes in the future, you only need to change the path in the system variable, rather than in each bundle that uses that location in a path.
Overriding Inherited Settings: When configuring system variables for an object (folder, device, bundle), you can override an inherited variable by defining a new variable with the same name but a different value. For example, if ProgramFiles=C:\ is defined at the Management Zone, you can override it by defining ProgramFiles=D:\ at the device folder level or at the device or bundle.
You could use a system variable when creating one bundle, and depending on the location of the targeted device object in the folder hierarchy, the value could be different.
For example, suppose that all of your applications are installed in C:\program files except for specific applications used by the accounting department, which are installed in D:\program files. You could define the “ProgramFiles” variable at the Management Zone level to point to C:\program files. For the accounting applications, you could create a device folder, called Accounting Department, to contain the devices in the accounting department. You could set the value for the “ProgramFiles” variable to D:\program files on the Accounting Department device folder level. When the same bundle is applied to devices, the path to the program files directory would be on the C:\ drive for all targeted devices except for those contained in the Accounting Department device folder. For those devices, the program files directory would point to the D:\ drive.
For trademark and copyright information, see Legal Notices.