Add or Edit Command Line
Dialog Box

This dialog box lets you define a command line that runs when the associated software resource is delivered to a managed computer.
Options in the
Add or Edit Command Line
dialog box
Option
Description
Name
Identifies this command line in any list of command lines for software resources.
Make the name descriptive enough for others to easily identify this command line. Follow your organization’s standards for names, if any.
Description
Lets you type a description to further identify this command line and make it more recognizable.
Do not include critical information in the description because it is not intended to appear in all the lists that contain the name.
Command line requires a package
Lets you select the package that the command line runs, if any. The
Package
list contains the packages that are associated with the current software resource.
Some command lines do not require a package because the action does not require the package to be downloaded. For example, Windows Installer (MSI) repair and uninstall command lines do not require a package. However, they generally require the package code GUID value to identify the package on the managed computer. The Command Line Builder can help you generate a command line that contains the package code GUID value.
Installation file type
Lets you select the type of installation that this command line represents. An installation file type is required for the Command Line Builder to help create the command line. The installation file type determines the options that are available in the
Command Line Builder
dialog box.
The list contains the supported installation file types. Additional internal products or third-party products can be programmed to introduce additional file types that are not listed here.
Use the
<other>
option in the following situations:
  • When the installation file is not one of the types that are listed
  • When the command line does not run an installation file
Command type
Lets you select the action that the command line performs. The action that you select can enable certain automatic functionality in software delivery. For example, a default uninstall command line lets Managed Delivery use the supersedence functionality to update a software resource.
This option also determines the command-line options that are available in the
Command Line Builder
. The
Installation file type
option determines the options that are available here. Additional internal products or third-party products can be programmed to introduce additional command types that are not listed here.
The options that specify the type of action to perform are as follows:
  • Custom
    Lets you enter a command line for actions other than the predefined actions.
    In Software Management Solution, when you perform a Managed Delivery that contains a custom command type, the applicability rules and detection rules do not run.
  • Install
    Uses the installation package to install or configure the software resource.
  • Repair
    Repairs the software resource that is installed on the destination computer.
  • Uninstall
    Uninstalls the software resource.
Set as the default for this command type
Makes this command line the default for the type of action that is selected in
Command type
. For example, you can define multiple installation command lines for a software resource, but only one installation command line can be the default.
Software delivery policies and tasks are the primary users of the default command lines. For example, when you create a policy to deliver a software resource and its dependencies, select the command line to install the main software resource. Each dependency’s default installation command line is selected automatically.
Command line
Lets you type the full command line.
The
Edit
option opens the
Command Line Builder
dialog box, which provides additional options that depend on the type of installation file that you selected as follows:
  • EXE, InstallShield EXE, Windows batch installation file, or Windows script installation file
    Opens a dialog box in which you can select a file for the command line to act on. Although you can type any command for these types of files, only installation commands can be generated for them.
  • MSI, VSA, XPF, and non-Windows files
    Opens the
    Command Line Builder
    , which helps you build the command line.
Success codes
Lets you type the codes to be returned from the command line when it is successful. Type a single value, a series of comma-separated values, or a range of values.
Failure codes
Lets you type the codes to be returned from the command line when it fails. Type a single value, a series of comma-separated values, or a range of values.