desktop6:InstallActions

デスクトップ アプリケーションの最初の起動前に実行されるインストーラー ファイル (.exe または .msi) を指定します。

注意

この要素は現在、MSIXVC コンテナーにパッケージ化されたデスクトップ PC ゲームでのみ使用することを目的としています。 これには、customInstallActionsの制限付き機能が必要です。

要素の階層

<パッケージ>

    <拡張機能>

         <desktop6:Extension>

              <desktop6:CustomInstall>

                   <desktop6:InstallActions>

構文

<desktop6:InstallActions>

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

</desktop6:InstallActions>

キー

{} 特定の出現範囲

属性と要素

属性

なし。

子要素

子要素 説明
InstallAction デスクトップ アプリケーションの最初の起動前に実行されるインストーラー ファイルを指定します。

親要素

親要素 説明
desktop6:CustomInstall デスクトップ アプリケーションで、デスクトップ アプリケーションと共にインストールされる 1 つ以上の追加のインストーラー ファイルを指定できるようにします。

注釈

この要素には、 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>

必要条件

Item
名前空間 http://schemas.microsoft.com/appx/manifest/desktop/windows10/6
Minimum OS Version Windows 10 バージョン 1903 (ビルド 18362)