cmdLine Element

Updated: September 26, 2009

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

The cmdline element contains child elements that specify the commands and arguments used to install the product. You can use commands as you would type them at a command prompt to perform tasks such as stopping and starting services, or specify parameters for the installer.

<cmdline>
  <exe>%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe</exe>
  <commandLineArguments>-iru -enable</commandLineArguments>
  <returnCodeMappings> ... </returnCodeMappings>
  <ignoreExitCode>true</ignoreExitCode>
</cmdline>

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

 

Element Description

exe

Contains the file system path of the installation executable file.

commandLineArguments

Contains arguments that are issues as part of the installation process.

returnCodeMappings

Contains one or more child mapping elements that maps return codes from the installer to error message strings.

ignoreExitCode

Specifies whether to ignore the exit code returned by the installer. If true, the exit code is ignored.

Parent Elements

 

Element Description

installCommands

Contains one or more child msiInstall, cmdline, or msuInstall elements that define how the product is installed.

Community Additions

ADD
Show: