Download and install updates
After you identify the set of updates, use XStoreDownloadAndInstallPackageUpdatesAsync to queue and download all the updates.
At this point, the game terminates to apply the update. This process occurs without warning, so provide ample user notice or confirmation before calling this function.
Monitoring download progress
When a download is in progress, use XPackageCreateInstallationMonitor to monitor the progress of the download:Testing updates
During development, you can test availability updates only by using local packages.- Create V1 package with the update check and download code.
- Create V2 package with the same identity but incremented version number.
- Run
xbapp/wdapp installV1. - Run
xbapp/wdapp updateV2/a. - Launch V1.
XStoreQueryGameAndDlcPackageUpdatesAsync or XStoreQueryPackageUpdatesAsync call finds any available updates, and XStoreDownloadAndInstallPackageUpdatesAsync updates V1 by using the advertised V2 package. When the “download” of V2 is in progress, this status shows in the XBOX download queue, XBOX app, or Microsoft Store app as an item in the queue. When the installation finishes, V2 is installed. You can verify the installation by using xbapp/wdapp list[dlc].
Using /m instead of /a makes the update “mandatory”, which simply affects the XStorePackageUpdate.isMandatory field.
You can’t update from a development build to the package that downloads from the Store due to signing differences.
For more information about how to create efficient updates and different ways to test, see the content update pages referenced in the following section.
