-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registry of HKEY_CLASS_ROOT
when registering a custom scheme with uap:Protocol
is not cleaned up after uninstall
#4739
Comments
Have you managed to test this on any other versions of Windows beside the insider build that you mention? Have you tested this without using the Windows App SDK? The Protocol extension is an extension that is provided by Windows itself. Okay, so I modified a small manual packaging test application that I had, it doesn't reference the Windows App SDK. I see the same thing happening on Windows 11 23H2. |
Reproducible on Windows 10 19045 and I added it. |
Basically, this is a Windows bug. MSIX is not some external component, it is basically a rebranding of appx. The behaviour to install these packages is part of Windows itself, and is the functionality also used by the Add-AppxPackage cmdlet and the PackageManager runtime class.
There is no difference to how you are using it.
As a side note, even though I am using uap10 to identify the application type, this does behave the same as setting EntryPoint to windows.fullTrustApplication.
I totally agree. I only responded because I felt that the scope of the problem was a little underspecified. |
This sounds like a bug in the protocol deregistration work in the deployment pipeline. I've passed along word to the protocol handling team => https://task.ms/54265091 Thanks for reporting this! |
Describe the bug
I have a WinUI3 packaged app registered a custom scheme in
package.appxmanifest
usingI found out the corresponding registry key
Computer\HKEY_CLASSES_ROOT\testapp
is not deleted after uninstalling the app.I don't know any ways (other than
Launcher.FindUriSchemeHandlersAsync
, because I have cross-platform concerns, so I can't pull in winrt) to detect such scheme exist and launch it, so I use the registry key.Steps to reproduce the bug
As description. Create a new WinUI3 C++ packaged app, then do the above.
Expected behavior
The registry key should be cleaned up.
Screenshots
No response
NuGet package version
Windows App SDK 1.6.0: 1.6.240829007
Packaging type
Packaged (MSIX)
Windows version
Insider Build (xxxxx)
Windows 10 19045
IDE
Visual Studio 2022
Additional context
Repro
The text was updated successfully, but these errors were encountered: