Register a file extension for all users

Lets say, I belong to Administrators in Windows 10 and I want:

  • I.
  • All other existed users.
  • Users not created yet.

When anyone from the above list press “enter” on a PDF file, then PDF opened with SumatraPDF.

Until now:

I create a key HKCR/.pdf with default value SumatraPDF.

Then I create a key HKCR/SumatraPDF/Shell/open/command with default value "C:Program FilesSumatraPDFSumatraPDF.exe" "%1"

But it is not so easy.

There is some an annoying key in HKCR/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/FileExt which makes things difficult.

Can anyone explain the logic of registering file extensions on Windows 10?

PS: Edge usually capture PDF file extension but not if you deny write for everyone.