desktop6:InstallActions

Specifies installer files (.exe or .msi) that are run before the first launch of your desktop application.

Note

This element is currently intended to be used only by desktop PC games that are packaged in an MSIXVC container. It requires the customInstallActions restricted capability.

Element Hierarchy

<Package>

    <Extensions>

         <desktop6:Extension>

              <desktop6:CustomInstall>

                   <desktop6:InstallActions>

Syntax

<desktop6:InstallActions>

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

</desktop6:InstallActions>

Key

{} specific range of occurrences

Attributes and elements

Attributes

None.

Child elements

Child element Description
InstallAction Specifies an installer file that is run before the first launch of your desktop application.

Parent elements

Parent element Description
desktop6:CustomInstall Enables your desktop application to specify one or more additional installer files that are installed with your desktop application.

Remarks

This element requires the customInstallActions restricted capability.

Examples

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

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/desktop/windows10/6
Minimum OS Version Windows 10 version 1903 (Build 18362)