Order (microsoft-windows-setup-runsynchronous-runsynchronouscommand-order)
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. To run services or commands that can start at the same time, use RunAsynchronous instead.
All RunSynchronous commands run in the system context.
Values
Synchronous_command_execution_order |
Specifies the order to start the command. This value is an integer between 1 and 500. |
Valid Configuration Passes
windowsPE
Parent Hierarchy
microsoft-windows-setup- | RunSynchronous | RunSynchronousCommand | Order
Applies To
For a list of the supported Windows editions and architectures that this component supports, see microsoft-windows-setup-.
XML Example
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>