次の方法で共有


Order (microsoft-windows-setup-runasynchronous-runasynchronouscommand-order)

Order は、各 AsynchronousCommand に一意の値を指定します。

同時に開始できるサービスまたはコマンドを実行するには、非同期コマンドを使用します。 他のコマンドを開始する前に完了する必要があるコマンドを開始するには、代わりに RunSynchronous コマンドを使用します。

すべての RunAsynchronous コマンドは、システム コンテキストで実行されます。

Asynchronous_command_order

1 から 500 の間の一意の整数を指定します。

重要

同期コマンドとは異なり、コンピューターは、1 つの非同期コマンドが終了するまで次のコマンドの開始を待機しません。

有効な構成パス

windowsPE

[親階層]

microsoft-windows-setup- | RunAsynchronous | RunAsynchronousCommand | Order

適用対象

このコンポーネントがサポートしている Windows のエディションとアーキテクチャの一覧については、microsoft-windows-setup- を参照してください。

XML の例

次の XML 出力は、非同期コマンドを実行するように構成する方法を示しています。

<RunAsynchronous>
   <RunAsynchronousCommand>
      <Order>1</Order>
      <Path>\\MyNetworkShare\MyApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
      <Credentials>
         <Domain>FabrikamDomain</Domain>
         <UserName>MyUserName</UserName>
         <Password>MyPassword</Password>
      </Credentials>
   </RunAsynchronousCommand>
   <RunAsynchronousCommand>
      <Order>2</Order>
      <Path>C:\AnotherApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
   </RunAsynchronousCommand>
</RunAsynchronous>

RunAsynchronousCommand

RunSynchronous