electron-deeplink icon indicating copy to clipboard operation
electron-deeplink copied to clipboard

Uninstall protocol

Open krysalead opened this issue 3 years ago • 4 comments

Hi,

Thanks for the library. I have a question on windows, we uninstall the application that was registering the protocol and we can still see the protocol inside the registry. Have you faced this issue and know how to solve that, any specific configuration?

I am using [email protected] [email protected] [email protected]

Thanks & regards

K

krysalead avatar May 25 '22 12:05 krysalead

I'm sorry, there was never any 'clean-up' built in. What are the reg keys and I'll look into it. I'm working on a v2 right now, and I'll add in better support for Windows.

glawson avatar Aug 15 '22 15:08 glawson

Win10 registry search for my dev protocol shows

HKEY_CURRENT_USER\SOFTWARE\Classes\app-dev
    (Default)    REG_SZ    URL:app-dev

HKEY_CLASSES_ROOT\app-dev
    (Default)    REG_SZ    URL:app-dev

According to the electron code I think you only need to adjust the HKCU key

Could you use the Electron app.removeAsDefaultProtocolClient to clean this up?

devsibwarra avatar Aug 22 '22 18:08 devsibwarra

@devsibwarra or @krysalead - would either of you be interested in creating a powershell script to add and remove the reg keys? I'm in the process of rebuilding the Mac LaunchServices entry, and the help would be appreciated.

glawson avatar Aug 24 '22 16:08 glawson

@glawson I live on a Mac environment, so I'd definitely be out of my element on Windows. Any reason to not the Electron native handler to cleanup the protocol registrations?

devsibwarra avatar Sep 01 '22 00:09 devsibwarra

https://github.com/glawson/electron-deeplink#-deprecation-notice-

glawson avatar Aug 18 '23 15:08 glawson