Skip to main content

XStoreDownloadAndInstallPackageUpdatesAsync

Downloads and installs updates for the specified store packages.

Syntax

Parameters

storeContextHandle   _In_
Type: XStoreContextHandle
The store context handle for the user returned by XStoreCreateContext. packageIdentifiers   _In_z_count_(packageIdentifiersCount)
Type: char**
List of package identifier strings. A package identifier uniquely identifies a package from the Microsoft Store. For more information about package identifiers, see Manage and license downloadable content (DLC). packageIdentifiersCount   _In_
Type: size_t
The number of identifiers in packageIdentifiers. async   _Inout_
Type: XAsyncBlock*
An XAsyncBlock defining the asynchronous work being done. The XAsyncBlock can be used to poll for the call’s status and retrieve call results. For more information, see XAsyncBlock.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

This function downloads and installs updates for the specified store packages.
When you call this function and it finds updates for the game, the game terminates immediately to allow the install to occur.
To retrieve the results of the download and install update, call XStoreDownloadAndInstallPackageUpdatesResult after calling this function. For a usage example, see XStoreQueryGameAndDlcPackageUpdatesAsync. When you call this API from a running game, the downloads are high priority and go at the beginning of the queue in the order specified in the storeIds parameter.

Requirements

Header: XStore.h (included in XGameRuntime.h) Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles, and XBOX Series consoles

Conceptual documentation

See also

XStore
XStoreDownloadAndInstallPackageUpdatesResult
Last modified on August 20, 2026