desktop6:RepairActions

指定当用户在桌面应用程序的“设置”页中选择修复或重置选项时运行的安装程序文件 (.exe 或 .msi) 。

注意

此元素目前仅供打包在 MSIXVC 容器中的桌面电脑游戏使用。 它需要 customInstallActions受限功能

元素层次结构

<包>

    <扩展>

         <desktop6:Extension>

              <desktop6:CustomInstall>

                   <desktop6:RepairActions>

语法

<desktop6:RepairActions>

  <!-- Child elements -->
  desktop6:RepairAction{0,100}

</desktop6:RepairActions>

密钥

{} 特定出现次数范围

特性和元素

特性

无。

子元素

子元素 描述
RepairAction 指定当用户在桌面应用程序的“设置”页中选择修复或重置选项时运行的安装程序文件 (.exe 或 .msi) 。

父元素

父元素 描述
desktop6:CustomInstall 使桌面应用程序能够指定一个或多个随桌面应用程序一起安装的其他安装程序文件 (.exe 或 .msi) 。

注解

此元素需要 customInstallActions受限功能

示例

<Package
  xmlns:desktop6="http://schemas.microsoft.com/appx/manifest/desktop/windows10/6"
  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
  IgnorableNamespaces="rescap desktop6">

  <!-- ... -->
  <!-- Other entries omitted for brevity. -->
  <!-- ... -->

  <Extensions>
    <desktop6:Extension Category="windows.customInstall">
      <desktop6:CustomInstall Folder="MyInstallers">
        <desktop6:InstallActions>
          <desktop6:InstallAction File="Setup_AntiCheat.exe" Name="AC_1" Arguments="/add /silent" />
        </desktop6:InstallActions>
        <desktop6:RepairActions>
          <desktop6:RepairAction File="Setup_AntiCheat.exe" Name="AC_1" Arguments="/add /silent /force" />
        </desktop6:RepairActions>
        <desktop6:UninstallActions>
          <desktop6:UninstallAction File="Setup_AntiCheat.exe" Name="AC_1" Arguments="/remove /silent" />
        </desktop6:UninstallActions>
      </desktop6:CustomInstall>
    </desktop6:Extension>
  </Extensions>

  <Capabilities>
    <rescap:Capability Name="customInstallActions"/>
  </Capabilities>
</Package>

要求

命名空间 http://schemas.microsoft.com/appx/manifest/desktop/windows10/6
Minimum OS Version Windows 10版本 1903 (内部版本 18362)