"Always use this program to open these files" is grayed out. Why?
I inadvertently set the Registry Editor to be the default editor for *.txt files. Now when I go to change the default, "Always use this program to open these files" is grayed out. This is the case whether I right click on the file and choose "Open with...", or start with the "Set Default Programs" control panel.
Why? How can I fix this?
I came across this problem again, but in this case the file association fixer tool suggested by @Moab didn't work because it only handles a handful of common extensions, and the extension I was having trouble with (.ahk) isn't included.
I did some more digging and found a general solution using regedit; this did the trick for me.
- Open regedit
- Go to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
- Find your extension
- Delete the
UserChoice
key
Assuming you are logged in as Admin, first thing to check is the Windows Registry.
-
Open Registry Editor (Start > Run > regedit) and navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer
In the right side of the screen double click on "NoFileAssociate".
Change the value of "NoFileAssociate" from 1 to 0.
-
Now navigate to
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer
Repeat steps 2 and 3.
Close "regedit" and reboot your machine.
If the above procedure doesn't work for you (or if you already have "NoFileAssociate" values as 0), reboot in safe mode and change a filetype to be opened with a default program (or right-click and select "open with" for that file type, and check if the box is still grayed out or not) and hit OK. In the next reboot, the issue should be fixed.
In case anybody is still having this issue, it's worth checking if you have the File Association Helper installed. It's included as a part of the WinZip package and overrides the default settings for how you deal with files, resulting in the greyed out "always use this program" box. Just uninstall it and it will go back to normal.
Use this file association fixer tool
http://www.addictivetips.com/windows-tips/fix-windows-7-file-association/
.