desktop6:RepairAction

사용자가 데스크톱 애플리케이션의 설정 페이지에서 복구 또는 다시 설정 옵션을 선택할 때 실행되는 설치 관리자 파일(.exe 또는 .msi)을 지정합니다.

참고

이 요소는 현재 MSIXVC 컨테이너에 패키지된 데스크톱 PC 게임에서만 사용됩니다. customInstallActions제한된 기능이 필요합니다.

요소 계층 구조

<패키지>

    <확장>

         <desktop6:Extension>

              <desktop6:CustomInstall>

                   <desktop6:RepairActions>

                        <desktop6:RepairAction>

구문

<desktop6:RepairAction
  File = 'A string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
  Name = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  Arguments = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.' />

특성 및 요소

특성

attribute Description 데이터 형식 필수 기본값
최근에 사용한 파일 실행할 파일의 이름입니다(.exe 또는 .msi). 이 파일은 패키지에 있어야 합니다. desktop6의 Folder 특성에 상대적인 경로를 지정할 수 있습니다 . CustomInstall 요소입니다. 절대 경로를 지정할 수 없으며 상대 경로는 문자로 \ 시작해서는 안 됩니다. , 또는 문자를 포함할 수 없는 길이가 1~256자<":|>?인 문자열입니다.* Yes
이름 복구 작업의 이름입니다. 이 이름은 복구 작업을 식별하는 데 사용되며 OS는 이 이름을 사용하여 성공적으로 실행된 작업을 추적합니다. 이 값이 동일한 시퀀스의 일부로 실행하려는 해당 desktop6:InstallActiondesktop6:UninstallAction 요소의 특성과 일치하는 Name 지 확인합니다. 이 이름은 부모 desktop6:RepairActions 요소에서 고유해야 하지만 desktop6:InstallActions 및 desktop6:UninstallActions 요소의 다른 작업에서 공유할 수 있습니다. 시작과 끝에 공백이 아닌 문자가 있는 길이가 1~32767자인 문자열입니다. Yes
인수 설치 관리자 파일에 전달할 선택적 인수입니다. 시작과 끝에 공백이 아닌 문자가 있는 길이가 1~32767자인 문자열입니다. No

자식 요소

없음

부모 요소

부모 요소 Description
desktop6:RepairActions 사용자가 데스크톱 애플리케이션의 설정 페이지에서 복구 또는 다시 설정 옵션을 선택할 때 실행되는 설치 관리자 파일(.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)