Skip to content
PCFixWorkbench

Files · Windows 11

Fix a file that opens with the wrong app no matter how many times you set the default

Written November 28, 2026

A file that keeps opening in the wrong app after you have set the default more than once usually means the association itself is damaged or an app is resetting it. Set it by file type first, reset the offending app next, and rebuild the association only if it still will not stick.

What you need

Read the problem before you touch it

  1. Set it once the Settings way and watch what happens. Right-click the file, choose Open with, pick your app, and select Always. Microsoft sets out this route and the by-type route in Change default apps in Windows. If the file opens correctly now but not after a restart, something is resetting the choice rather than the choice failing.
  2. Check whether it is one file or the whole type. Create or find a second file with the same extension and open it. If only the first file misbehaves, that file's own properties are the problem. If every file of the type opens wrong, the association for the type is damaged.
  3. Notice whether the unwanted app was recently installed or updated. An app that registers itself as the default on every launch will undo your setting each time it runs. Test by setting the default, restarting the PC without opening that app, and opening your file first.

The simple fixes, in order

  1. Set the default by file type in Settings. Go to Settings > Apps > Default apps, search for the file extension, and set your app there. This writes the association in a different place from the right-click route and often sticks when that route does not.
  2. Repair or reset the app you want to keep. In Settings > Apps > Installed apps, open your preferred app's Advanced options and use Repair first. If the option exists and the association still will not point to it, use Reset, then set the default again.
  3. Uninstall and reinstall the app that keeps taking over. If one app reclaims the file type every time it launches, uninstall it from Installed apps, restart, set your default, and confirm it sticks. Reinstall the other app only if you need it, and decline any set-as-default prompt it shows during setup.
  4. Set the default again after any app update. App updates can legitimately reset associations once. Set the default one more time after an update before treating the problem as ongoing.

The advanced route

  1. Reset all default apps, then set yours first. In Settings > Apps > Default apps, scroll to Reset all default apps and use Reset. Restart, then set the default for your file type before opening the app that used to take over, so your choice is the first one written.
  2. Check for a second copy of the app. An app installed both from the Microsoft Store and from the maker's installer can fight itself over associations. In Installed apps, look for duplicate entries for the same program, uninstall the one you do not use, restart, and set the default again.
  3. Repair system files if defaults reset for many file types at once. When several unrelated file types all lose their defaults together, open Windows Terminal as administrator, run DISM /Online /Cleanup-Image /RestoreHealth, then run sfc /scannow. Microsoft documents both tools in Using System File Checker in Windows.

End state

When it goes wrong

Related fixes

Sources