Tag Archives: registry

How to stop Microsoft Edge from hijacking PDF files

Windows 10 comes with the new web browser, Edge, that is also set up as the default application for handling several other popular files, such as PDF. If you prefer another program to open the PDF files, you can set up that program using the Default Programs tool of Control Panel. You could also use the Open With... command that appears on the right-click menu for the PDF files.

However, in some situations, changing the default application for handling the PDF files does not stick: it may work once or twice, and then Microsoft Edge takes over, reverting the file association of the PDF files to itself. You can try to change the default application once more, but soon Windows "forgets" about your decision and starts opening them with Edge again. If you experience such a problem, the following solution might help.

First things first: the following steps involve changing values in Windows Registry. Please be extra careful with it, because if you do something wrong, you can damage your Windows installation and even make your computer disabled. If you are not familiar with the Registry Editor, you may want to ask a more experienced friend or a colleague for help.

To solve the problem of Microsoft Edge hijacking the PDF files, run Registry Editor, and navigate to the following key:

  HKEY_CURRENT_USER
    SOFTWARE
      Classes
        Local Settings
          Software
            Microsoft
              Windows
                CurrentVersion
                  AppModel
                    Repository
                      Packages

Under this key, look for a key that starts with Microsoft.MicrosoftEdge. At the time of this writing, such a key is named:

Microsoft.MicrosoftEdge_38.14393.0.0_neutral__8wekyb3d8bbwe

However, it could be changed in the later versions of Windows. Expand this key and also expand the following keys under it:

  Microsoft.MicrosoftEdge_38.14393.0.0_neutral__8wekyb3d8bbwe
    MicrosoftEdge
      Capabilities
        FileAssociations

Select FileAssociations and look at the list in the right-hand part of the screen:

Take a note of the Data string displayed for the .pdf name. At the time of this writing, the string is AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723, but it may change in the future versions of Windows.

Now, while still in Registry Editor, navigate to the key:

  HKEY_CURRENT_USER
    SOFTWARE
      Classes
        AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723

Right-click on AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723, and choose Rename from the menu. Add the underscore character to the end of the name and press Enter to save the new name:

Now use the Default Applications tool of Windows Control Panel one last time to set up a default application for the PDF files (other than Edge). From now on, Edge should not reinstall itself as the default application.

If you decide later on that you want to return to the previous behavior, simply remove the underscore character from the name of the AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723 key (thus restoring its original name).

Read more