订单 (runsynchronous-runsynchronouscommand-order) Order (microsoft-windows-setup-runsynchronous-runsynchronouscommand-order)

Order 指定 RunSynchronous 命令的运行顺序。Order specifies the order in which the RunSynchronous command is run.

同步命令按无人参与安装答案文件中指定的顺序启动,必须在下一个命令开始之前完成每个命令。Synchronous commands start in the order specified in the unattended installation answer file, and each command must finish before the next command starts.

若要启动在其他命令可以启动之前需要完成的命令,请使用同步命令。To start a command that needs to finish before other commands can start, use synchronous commands. 若要运行可同时启动的服务或命令,请改用 RunAsynchronousTo run services or commands that can start at the same time, use RunAsynchronous instead.

所有 RunSynchronous 命令都在系统上下文中运行。All RunSynchronous commands run in the system context.

Values

Synchronous_command_execution_orderSynchronous_command_execution_order

指定启动命令的顺序。Specifies the order to start the command. 此值是1到500之间的整数。This value is an integer between 1 and 500.

有效的配置阶段Valid Configuration Passes

windowsPEwindowsPE

父层次结构Parent Hierarchy

microsoft-windows-设置- | RunSynchronous | RunSynchronousCommand | 顺序microsoft-windows-setup- | RunSynchronous | RunSynchronousCommand | Order

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 microsoft-安装-For a list of the supported Windows editions and architectures that this component supports, see microsoft-windows-setup-.

XML 示例XML Example

以下 XML 输出显示了如何设置同步命令。The following XML output shows how to set synchronous commands.

<RunSynchronous>
   <!-- First synchronous command to execute -->
   <RunSynchronousCommand>
      <Order>1</Order>
      <Path>\\MyNetworkShare\MyApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
      <Credentials>
         <Domain>FabrikamDomain</Domain>
         <UserName>MyUserName</UserName>
         <Password>MyPassword</Password>
      </Credentials>
   </RunSynchronousCommand>
<!-- Second synchronous command to execute -->
   <RunSynchronousCommand>
      <Order>2</Order>
      <Path>C:\AnotherApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
   </RunSynchronousCommand>
</RunSynchronous>

RunSynchronousCommandRunSynchronousCommand

RunAsynchronousRunAsynchronous