Windows – Why are certain default application associations “locked”

file associationwindows 7

After associating my MP3 files with MPlayer using the Open with/Choose default program... dialogue I can no longer change that association using said dialogue, the Always use this [...] Checkbox is henceforth always greyed out (Control Panel -> Default Programs -> Associate a file type or protocol with a program does not let me change it either, it seems to just use the same dialogue anyway).

That also happened for MP4 files, but not for MKVs for example, and if I associate my MP3 files with other applications like VLC media player it does not get blocked. Why is that and can I avoid this beforehand (thankfully, I know ways to fix it afterwards already)?

Another obervation: The blocking programs (I managed to block it with an association to Visual Studio as well) do not appear in the Recommended Programs of the open-with-dialogue (And the explorer said: "The current program is not recommended, but I won't let you change it, ha!").

A screenshot:

Screenshot

As you can see on the top left (if you know the icon of MPlayer), the file is currently associated with MPlayer.


Ways to fix it (note: This question is not about fixing it):

  1. Using the Default Programs

    Control Panel -> Default Programs -> Set Default Programs, select WMP, Choose defaults for this program, check .mp3.

    This should reassociate the files with Windows Media Player (WMP), and you can create a new association in Windows Explorer.

  2. Using the registry (as always, keep your hands off it unless you know what you are doing or if you are fine with accidentally breaking your system):

    HKEY_CURRENT_USER -> Software -> Microsoft -> Windows -> CurrentVersion -> Explorer -> FileExts > .mp3

    Here you could for example clean up the open-with-list, and the current default program seems to be saved here as well in the key UserChoice. There you can change the ProgId string to another application, and you can associate it with WMP by entering WMP11.AssocFile.MP3 or just pick another application right away.

    You may need to mess with permissions on the key though, if you cannot change the ProgId value.

(As I now have three answers that do not answer the question: This question is not about getting the association to work again. I do not like fighting symptoms, I prefer cures.)

Best Answer

It seems that the forum post Cannot set file association - option greyed out has the answer:

In HKEY_CLASSES_ROOT\Applications\regedit.exe there is a REG_SZ 0value called NoOpenWith

Check if you have this value in your registry.

If so, the real question is: why is there such a value and which program set it?

Related Question