Default Programs

Stop Edge from hijacking your PDF/HTML file associations

Stop Edge from hijacking your PDF/HTML file associations

Microsoft Edge is set as the default PDF reader to open and view PDF files in Windows. So, whenever I attempt to open any PDF file in Windows 10, it automatically gets opened in Edge browser, although my preferred choice is Acrobat Reader. Moreover, when I try to change the settings, the browser hijacks it and resorts to its old behavior again. While many would not oppose this move, I believe, it's not intended for everyone. So, here's how you can stop Edge from changing the PDF viewer association.

Stop Edge from hijacking PDF/HTML associations

The change is observed to be triggered by a reset of File Association for a file type, which restores Windows 10 defaults. But, why do PDF FileAssociations get reset every time a user restarts his PC.

Well, The feature team for FileAssociation explains that its protection mechanism in Windows 10 prevents direct changes to the UserChoice area of the registry for each file type. As such, when no FileAssociation is configured in the registry or if an application makes the hash void by incorrectly writing to the UserChoice registry key to set associations, a reset of  FileAssociation for that file type gets triggered, restoring default status. Hence, we need to edit a registry entry.

Here is the solution to the PDF/HTML file type being continually reassigned to Microsoft Edge browser.

Open the 'Run' dialog box, type 'Regedit' and hit 'Ok' button. Next, navigate to the following key -

HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.MicrosoftEdge_25.10586.0.0_neutral__8wekyb3d8bbwe\MicrosoftEdge\Capabilities\FileAssociations

Please note that, under the key that starts with Microsoft.MicrosoftEdge the address could be different in some versions of Windows.

For instance, in my case it was-

 Microsoft.MicrosoftEdge_42.17134.1.0_neutral_8wekyb3d8bbwe

When found, simply expand this key and others under it. Then, choose FileAssociations and look at the entries provided in the right corner of the screen.

Observe closely the Data string displayed for the .pdf name.

At the time of this writing, the string is this, but it may be different in your case-

AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723

Right-click on the above entry and select the Rename option from the menu displayed.

After that, add the underscore character to the end of the name and press Enter to save the new name.

When done, navigate to Control Panel and open the Default Programs applet to configure the change, i.e., choosing a different application as the default application for the PDF files.

From now on, Edge should not reinstall itself as the default application.

Should you wish to change this setting to original and restore the earlier experience, simply remove the underscore character from the name of the key-

AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723

If Windows does not allow you to edit the Registry key, you may need to run regedit as admin and take ownership of the Registry key.

Hope this helps!

Cum se arată FPS Counter în jocurile Linux
Jocurile cu Linux au primit un impuls major când Valve a anunțat suportul Linux pentru clientul Steam și jocurile acestora în 2012. De atunci, multe j...
How to download and Play Sid Meier's Civilization VI on Linux
Introduction to the game Civilization 6 is a modern take on the classic concept introduced in the series of the Age of Empires games. The idea was fai...
How to Install and Play Doom on Linux
Introduction to Doom The Doom Series originated in the 90s after the release of the original Doom. It was an instant hit and from that time onwards th...