PowerToys: [Dev files preview] .reg not working

Microsoft PowerToys version

0.58.0

Running as admin

  • Yes

Area(s) with issue?

Developer file preview

Steps to reproduce

Updated from v0.75.2 to v0.58.0. Disabling and re-enabling the preview also didn’t helped.

✔️ Expected Behavior

Previewing .reg file with dev preview.

❌ Actual Behavior

Windows default preview is used for .reg files.

image

image (Output from /tools/Verification scripts/Check preview handler registration.ps1)

PowerToysReport_2022-05-05-00-09-25.zip

Other Software

No response


cc: @aaron-junker

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15

Most upvoted comments

I found out what happens. The installer installs the handler correctly for .reg files, but under HKEY_CLASSES_ROOT\regfile\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f} is also a key, which overwrites the one set in HKEY_CLASSES_ROOT\.reg.

cc: @stefansjfw

@Aaron-Junker Fix with 0.62.0 or still not fixed?

No. Not fixed

HKEY_CLASSES_ROOT checks HKEY_CURRENT_USER before HKEY_LOCAL_MACHINE.