路径 (runasynchronous-runasynchronouscommand-path) Path (microsoft-windows-setup-runasynchronous-runasynchronouscommand-path)

Path 指定要执行的命令的路径和名称。Path specifies the path and the name of the command to execute.

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

Values

Path_to_commandPath_to_command

指定要异步执行的命令的路径和文件名。Specifies the path and the file name of the command to execute asynchronously. 该路径可以是本地路径或 UNC 路径。The path can be a local path or a UNC path. 如果路径是 UNC 路径,则必须指定 凭据If the path is a UNC path, Credentials must be specified. Path_to_command 是一个字符串。Path_to_command is a string.

该字符串类型不支持空元素。This string type does not support empty elements. 请勿为该设置创建空值。Do not create an empty value for this setting.

有效的配置阶段Valid Configuration Passes

windowsPEwindowsPE

父层次结构Parent Hierarchy

microsoft-windows-设置- | RunAsynchronous | RunAsynchronousCommand | 路径microsoft-windows-setup- | RunAsynchronous | RunAsynchronousCommand | Path

适用于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 configure asynchronous commands to run.

<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>

RunAsynchronousCommandRunAsynchronousCommand