Forum Discussion
josuegomes
Jul 19, 2024Copper Contributor
Custom URL handler with MSIX package
I have packaged my classic Win32 application as an MSIX package to be distributed on the Microsoft Store.
Now, I want to register it as a handler for a custom URL protocol. With the classic Win32 installation, it was just a matter of creating some registry entries. However, I couldn’t find a way to do that with the AppxManifest.xml file.
Ideas?
- Assuming that you want to register a traditional "protocol handler" that used to register under Classes\Protocols, the equivalent is in the desktop10 extension. As noted in the documentation, this is a package level extension in the AppXManifest.
https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop10-supportedprotocols- Oh, the desktop10 schema I think might be Windows 11 only. So the older version that works on 10 and 11 is here: https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-uap-protocol
- josuegomesCopper Contributor
TIMOTHY_MANGANthank you for the reply. I'm actually looking to register an URL association. See https://learn.microsoft.com/en-us/windows/win32/shell/default-programs#registering-an-application-for-use-with-default-programs
I want to associate my application for a custom URL.