You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to launch the Windows Settings app to display the Default Apps settings page from your app using the ms-settings URI scheme.
4
+
ms.assetid: a1819f4b-af98-4366-b2de-a7aea26da3a9
5
+
ms.date: 03/21/2023
6
+
ms.topic: article
7
+
keywords: windows, windows 11, uwp, default apps, windows app sdk
8
+
ms.localizationpriority: medium
9
+
dev_langs:
10
+
- csharp
11
+
- cppwinrt
12
+
---
13
+
14
+
# Launch the Default Apps settings page
15
+
16
+
Learn how to launch the Windows Settings app to display the Default Apps settings page from your app using the ms-settings URI scheme.
17
+
18
+
Windows defines a set of URIs that allow apps to launch the Windows Settings app and display a particular settings page. This article explains how to launch the Windows Settings app directly to the Default Apps settings page and, optionally, navigate directly to the settings for a specified default application. For more information, see [Launch the Windows Settings app](launch-settings-app.md).
19
+
20
+
## The Default Apps settings URL
21
+
22
+
ms-settings:defaultapps launches the Windows Settings app and navigates to the Default Apps settings page. Starting with Windows 11, version 21H2 (with 2023-04 Cumulative Update) or 22H2 (with 2023-04 Cumulative Update), you can append an additional query string parameter in escaped URI format to launch directly to the settings page for a specific application.
23
+
24
+
There are three query string parameters. The query string parameter to be used depends on how the application was installed.
25
+
26
+
| Query string parameter | Value to pass |
27
+
|--------|--------|--------|
28
+
| registeredAppUser | Named value from HKEY_CURRENT_USER\Software\RegisteredApplications<br/><br/>Use when the app was installed per user, and the registration for the app was written to HKEY_CURRENT_USER\Software\RegisteredApplications. |
29
+
| registeredAppMachine | Named value from HKEY_LOCAL_MACHINE\Software\RegisteredApplications<br/><br/>Use when the app was installed per machine, and the registration for the app was written to HKEY_LOCAL_MACHINE\Software\RegisteredApplications. |
30
+
| registeredAUMID | Application User Model ID <br/><br/>Use when the app was registered with Package Manager using a manifest declaring that the app handles File Types ([uap:FileTypeAssociation](/uwp/schemas/appxpackage/uapmanifestschema/element-uap-filetypeassociation)) or URI schemes ([uap:Protocol](/uwp/schemas/appxpackage/uapmanifestschema/element-uap-protocol)). |
31
+
32
+
>[!NOTE]
33
+
>To get the registeredAUMID query string parameter to work after an OS upgrade, an app may need to increment its TargetDeviceFamily...MaxVersionTested value in its manifest. This will ensure that the app is reindexed for the user, which in turn will update the appropriate definitions used to process the deep link via protocol activation. MaxVersionTested should be updated to `10.0.22000.1817` for Windows 11, version 21H2 or `10.0.22621.1555` for Windows 11, version 22H2.
34
+
35
+
In the following example, `LaunchUriAsync` is called to launch the Windows Settings app. The ms-settings:defaultapps Uri specifies that the Default Apps settings page should be shown. Next, the app that should be launched is determined. As an example, “Microsoft Edge” was registered by the app in HKEY_LOCAL_MACHINE\Software\RegisteredApplications. Since it is a per machine installed app, `registeredAppMachine` is the query string parameter that should be used. The optional query string parameter `registeredAppMachine` is set to the registered name, escaped with a call to `Url.EscapeDataString`, to specify that the page for **Microsoft Edge** should be shown.
Learn how to launch the Windows Settings app. This topic describes the **ms-settings:** URI scheme. Use this URI scheme to launch the Windows Settings app to specific settings pages.
23
+
Learn how to launch the Windows Settings app. This topic describes the `ms-settings:` URI scheme. Use this URI scheme to launch the Windows Settings app to specific settings pages.
24
24
25
25
Launching to the Settings app is an important part of writing a privacy-aware app. If your app can't access a sensitive resource, we recommend providing the user a convenient link to the privacy settings for that resource. For more info, see [Guidelines for privacy-aware apps](../security/index.md).
26
26
@@ -75,7 +75,6 @@ The following sections describe different categories of ms-settings URIs used to
75
75
-[Extras](#extras)
76
76
-[Family Group](#family-group)
77
77
-[Gaming](#gaming)
78
-
-[Home page](#home-page)
79
78
-[Mixed reality](#mixed-reality)
80
79
-[Network and internet](#network-and-internet)
81
80
-[Personalization](#personalization)
@@ -125,9 +124,10 @@ The following sections describe different categories of ms-settings URIs used to
125
124
|Settings page| URI |
126
125
|-------------|-----|
127
126
| Apps & Features | ms-settings:appsfeatures|
128
-
| App features | ms-settings:appsfeatures-app (Reset, manage add-on & downloadable content, etc. for the app) <br><br> To access this page with a URI, use the `ms-settings:appsfeatures-app` URI and pass an optional parameter of the _package family name_ of the app. |
127
+
| App features | ms-settings:appsfeatures-app (Reset, manage add-on & downloadable content, etc. for the app) <br><br> To access this page with a URI, use the ms-settings:appsfeatures-app URI and pass an optional parameter of the _package family name_ of the app. |
129
128
| Apps for websites | ms-settings:appsforwebsites|
130
-
| Default apps | ms-settings:defaultapps|
129
+
| Default apps | ms-settings:defaultapps (**Behavior introduced in Windows 11, version 21H2 (with 2023-04 Cumulative Update) or 22H2 (with 2023-04 Cumulative Update), or later.**)<br/>Append the query string parameter in the following formats using the Uri-escaped name of an app to directly launch the default settings page for that app:<br/><br/>- registeredAppMachine=\<Uri-escaped per machine installed name of app\><br/>- registeredAppUser=\<Uri-escaped per user installed name of app\><br/>- registeredAUMID=\<Uri-escaped Application User Model ID\><br/><br/>For more information, see [Launch the Default Apps settings page](launch-default-apps-settings.md). |
130
+
| Default browser settings | ms-settings:defaultbrowsersettings (**Deprecated in Windows 11**) |
131
131
| Manage optional features | ms-settings:optionalfeatures|
0 commit comments