Skip to content
This repository has been archived by the owner. It is now read-only.

EdgeDeflector not listed as option for microsoft-edge protocol #114

Closed
nullnetworks opened this issue Jun 10, 2021 · 9 comments · Fixed by #132
Closed

EdgeDeflector not listed as option for microsoft-edge protocol #114

nullnetworks opened this issue Jun 10, 2021 · 9 comments · Fixed by #132

Comments

@nullnetworks
Copy link

In the 'Choose default apps by protocol' I have 5 options for MICROSOFT-EDGE:
Microsoft Edge(with edge logo)
My Username(no logo)
Microsoft Edge(no logo)
Microsoft Edge Beta(with edge logo with 'BETA' on it)
Look for an app in the Microsoft Store(with windows store logo)

I've tried re-running the installer and re-starting the machine, neither has had any effect.
Any idea how I can resolve this?

@da2x
Copy link
Owner

da2x commented Jun 10, 2021

Please go to Windows Settings: Apps: Default apps and click Reset to defaults. Reboot. Go back into Windows Settings: Apps: Default Apps: By protocol: MICROSOFT-EDGE. Does that fix it?

If that works then your default program database was corrupted. This is a common problem in Windows.

Some other things to test if that didn’t do the trick:

  • Did you change the installation location in the installer?
  • Have you had any earlier versions of EdgeDeflector installed? (It shouldn’t cause an issue like this, though.)
  • If you're comfortable with the System Registry Editor (regedit.exe), you can check these paths (where $PRODUCT is EdgeDeflector):
    ; Path registration
    WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\${PRODUCT}.exe" "" "$INSTDIR\${PRODUCT}.exe"
    WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\${PRODUCT}.exe" "Path" "$INSTDIR"
    WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\${PRODUCT}.exe" "SupportedProtocols" "microsoft-edge"
    WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\${PRODUCT}.exe" "useURL" 1
    ; Register protocol
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}.microsoft-edge" "" "URL: MICROSOFT-EDGE"
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}.microsoft-edge" "URL Protocol" ""
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}.microsoft-edge\shell\open\command" "" "$INSTDIR\${PRODUCT}.exe %1"
    ; Program class registration
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}\Application" "ApplicationName" "${PRODUCT}"
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}\DefaultIcon" "" "$INSTDIR\${PRODUCT}.exe,0"
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}\shell\open\command" "" "$INSTDIR\${PRODUCT}.exe %1"
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}\Capabilities" "ApplicationName" "${PRODUCT}"
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}\Capabilities" "ApplicationIcon" $INSTDIR\${PRODUCT}.exe,0"
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}\Capabilities" "ApplicationDescription" "${DESCRIPTION}"
    WriteRegStr HKCU "SOFTWARE\Classes\${PRODUCT}\Capabilities\UrlAssociations" "microsoft-edge" "${PRODUCT}.microsoft-edge"
    ; Application registration
    WriteRegStr HKCU "SOFTWARE\Classes\Applications\${PRODUCT}.exe\DefaultIcon" "" "$INSTDIR\${PRODUCT}.exe,0"
    ; Program registration
    WriteRegStr HKCU "SOFTWARE\RegisteredApplications" "${PRODUCT}" "SOFTWARE\Classes\${PRODUCT}\Capabilities"
  • Can you go to Windows Settings: Accounts and create a new temporary system account for testing. Login as the new user and try the installer again. Remember to delete the test account afterwards.

@JVT038
Copy link

JVT038 commented Jun 13, 2021

I have the same issue (version 1.2.2.0), and I checked my registry and I saw that SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\EdgeDeflector doesn't exist. It's literally not in my registry.
Maybe something's wrong with my installer? I used the latest release

@da2x
Copy link
Owner

da2x commented Jun 13, 2021

Please go to Windows Settings: Apps: Default apps and click Reset to defaults. Reboot. Go back into Windows Settings: Apps: Default Apps: By protocol: MICROSOFT-EDGE. Does that fix it?

@JVT038 does this work for you?

@JVT038 Just to verify, that should be (HKCU prefix) HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\EdgeDeflector.exe (.exe suffix.) Have it ended up somewhere else? Please search for EdgeDeflector in your registry and let me know what you find (you can ignore any with {random-id} in the path.)

@nullnetworks
Copy link
Author

I tried resetting to defaults then rebooting, no change.
I tried uninstalling edgedeflector which weirdly opened the 'open with' dialog instead of the uninstaller, so I went to the folder where it was installed and ran the uninstaller from there, rebooted, reinstalled, no change.

I didn't change the install directory from the installer.
I didn't have any earlier versions installed.
I've checked the registry using regedit and all of the keys listed are there.

Setting up a new user account and re-installing edgedeflector once logged in worked for the new account. I just don't know how to make that success translate into it working on my main account.

Thanks for your patience and help.

@JVT038
Copy link

JVT038 commented Jun 14, 2021

Please go to Windows Settings: Apps: Default apps and click Reset to defaults. Reboot. Go back into Windows Settings: Apps: Default Apps: By protocol: MICROSOFT-EDGE. Does that fix it?

@JVT038 does this work for you?

@JVT038 Just to verify, that should be (HKCU prefix) HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\EdgeDeflector.exe (.exe suffix.) Have it ended up somewhere else? Please search for EdgeDeflector in your registry and let me know what you find (you can ignore any with {random-id} in the path.)

It unfortunately doesn't.
But I have searched through the registry, and I found EdgeDeflector.exe on \SOFTWARE\Classes\Applications\EdgeDeflector.exe

@ajay4q
Copy link
Contributor

ajay4q commented Aug 27, 2021

I had the same problem. But I found a fix.

Problems:

  1. when I tried to uninstall from apps and features settings system information report is being generated with my username.
  2. when I tried to uninstall from the control panel apps and features list, This happened

    ed
  3. there is no edge deflector in Choose default apps by protocol for ms edge, instead, there is username with no logo. like this.

Why they occurred:

I realized why it is like that. Because people have space in their user name, the reference path is getting chopped right at that space.

  1. That's why the report is getting generated with my username because .exe reference path is chopped at username space.
  2. That's why control panel programs and features uninstall error occurred because it couldn't find the reference path as the reference path is broken at username.
  3. That's why the username appeared. cause windows don't get the full application reference path. It stopped at username.

Possible solution:
I have checked Regedit paths with .nsi file, everything exists as they were supposed to.
but the reference path is getting broken because reference paths are not mentioned with double quotes I think.
my guess is that's why only people with "user name" as their username are getting these kinds of errors.

Instant fix:
Reinstall in some simple root directory like C:\EdgeDeflector, then everything will work as they suppose to.
I did this and it worked. Hope it helps. Thank you.

ajay4q added a commit to ajay4q/EdgeDeflector that referenced this issue Aug 27, 2021
This will fix da2x#114 (comment)
tl;dr windows misreading the application path if the install directory has space which is most case scenario for user names.
@da2x da2x closed this as completed in #132 Sep 2, 2021
da2x pushed a commit that referenced this issue Sep 2, 2021
This will fix #114 (comment)
tl;dr windows misreading the application path if the install directory has space which is most case scenario for user names.
@da2x
Copy link
Owner

da2x commented Sep 3, 2021

This should be fixed in version 1.2.3.0.

@saifster9
Copy link

saifster9 commented Dec 27, 2021

Unable to redirect cortana searches after a recent reinstall of the program. I believe windows has modified the location where non-standard apps are located.... looked up in the registry and EdgeDeflector doesn't exist in the aforementioned path.
This is because other non-windows approved apps also started to crash at the same time...
did a quick dig around github/reddit and couldn't find any info about it...

Expected Registry Entry:
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\EdgeDeflector.exe

Current Location:
HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store

image

Is this something which can be fixed on my machine?

Currently when I install EdgeDeflector, it shows up in the control panel list, but no longer in the Default Apps page. Instead there is a blank icon with Edge written on it.
Here is a screenshot:

EdgeDeflector

Any assistance is greatly appreciated.

@da2x
Copy link
Owner

da2x commented Dec 27, 2021

See issue #141.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants