### App Installer Related Packages Example Source: https://github.com/microsoftdocs/winrt-related/blob/docs/winrt-related-src/schemas/appinstallerschema/element-s3-updatesettings.md This example demonstrates how to specify related packages, either as a bundle or a single package, within an App Installer file. Ensure the Uri points to a valid location for the package. ```xml ``` -------------------------------- ### Configure App Installer Update Checks Source: https://github.com/microsoftdocs/winrt-related/blob/docs/winrt-related-src/schemas/appinstallerschema/element-s4-onlaunch.md This example configures the App Installer to check for updates on every app launch. If an update is found, it prompts the user to install it and blocks app activation until the update is applied. It also allows the app version to be incremented or decremented. ```xml true ``` -------------------------------- ### Configure App Updates on Launch Source: https://github.com/microsoftdocs/winrt-related/blob/docs/winrt-related-src/schemas/appinstallerschema/element-s2-onlaunch.md This example configures the app to check for updates on every launch. If an update is found, the user will be prompted to install it, and the app's activation will be blocked until the update is applied. It also forces updates from any version. ```xml true ``` -------------------------------- ### Configure App Installer Update Checks Source: https://github.com/microsoftdocs/winrt-related/blob/docs/winrt-related-src/schemas/appinstallerschema/element-s3-onlaunch.md Configures the App Installer to check for updates on every launch and prompt the user to update before launching the app. This example also allows forcing updates from any version. ```xml true ``` -------------------------------- ### CustomInstall Element Example Source: https://github.com/microsoftdocs/winrt-related/blob/docs/winrt-related-src/schemas/appxpackage/uapmanifestschema/element-desktop6-custominstall.md This snippet demonstrates how to use the desktop6:CustomInstall element within the Appx manifest to specify custom installation, repair, and uninstallation actions for an application. It includes an example of installing an anti-cheat executable. ```xml ``` -------------------------------- ### OnLaunch Example Source: https://github.com/microsoftdocs/winrt-related/blob/docs/winrt-related-src/schemas/appinstallerschema/element-onlaunch.md Example of configuring the OnLaunch element within UpdateSettings to check for updates on every launch and prompt the user, blocking activation until the update is applied. ```APIDOC ## Example ```xml true ``` ``` -------------------------------- ### Example DeviceCompanionApplication Element Source: https://github.com/microsoftdocs/winrt-related/blob/docs/winrt-related-src/schemas/storemanifest/storemanifestschema2015/element-devicecompanionapplication.md This example demonstrates how to use the DeviceCompanionApplication element to declare an app as a device app by including an ExperienceId. ```xml aeabdaa8-3bcd-4f03-a7f5-54647fd574c2 ``` -------------------------------- ### Example: Playing a specific sound Source: https://github.com/microsoftdocs/winrt-related/blob/docs/winrt-related-src/schemas/tiles/toastschema/element-audio.md This example demonstrates how to use the audio element to play a specific sound, like an email notification, without looping. ```APIDOC ## Example: Playing a specific sound ### Code ``` xml