desktop6:UninstallAction

ユーザーがデスクトップ アプリケーションをアンインストールするときに実行されるインストーラー ファイル (.exe または .msi) を指定します。

注意

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

要素の階層

<パッケージ>

    <拡張機能>

         <desktop6:Extension>

              <desktop6:CustomInstall>

                   <desktop6:UninstallActions>

                        <desktop6:UninstallAction>

構文

<desktop6:UninstallAction
  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.' />

属性と要素

属性

属性 説明 データ型 必須 既定値
[最近使ったファイル] 実行するファイルの名前 (.exe または .msi)。 このファイルはパッケージに存在する必要があります。 desktop6 の Folder 属性に対する相対パスを指定できます 。CustomInstall 要素。 絶対パスを指定することはできません。相対パスは文字で \ 始めることはできません。 長さが 1 ~ 256 文字の文字列。、:>"|?または *を含<めることはできません。 はい
名前 アンインストール アクションの名前。 この名前はアンインストール アクションを識別するために使用され、OS はこの名前を使用して、正常に実行されたアクションを追跡します。 この値が、同じシーケンスの Name 一部として実行する対応する desktop6:InstallAction 要素と desktop6:RepairAction 要素の属性と一致していることを確認します。 この名前は親 desktop6:UninstallActions 要素で一意である必要がありますが、desktop6:InstallActions 要素と desktop6:RepairActions 要素の下の他のアクションで共有できます。 長さが 1 ~ 32767 文字の文字列で、先頭と末尾に空白文字以外の文字が含まれます。 Yes
引数 インストーラー ファイルに渡す省略可能な引数。 長さが 1 ~ 32767 文字の文字列で、先頭と末尾に空白文字以外の文字が含まれます。 いいえ

子要素

なし

親要素

親要素 説明
desktop6:UninstallActions ユーザーがデスクトップ アプリケーションをアンインストールしたときに実行されるインストーラー ファイル (.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>

必要条件

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