How to revert an accidental file association

When I right-clicked into an .exe file then chose Open with... and I select choose a program then I selected the wrong program. I checked the checkBox that has the label Always use the selected program to open this kind of file.

Now all of the .exe files have changed into the wrong program after I did this, so all .exe file opened with this program.

How do I revert the .exe file associations to do my regular work?


Solution 1:

Paste the following into notepad

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithList]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithProgids]
"exefile"=hex(0):

In notepad On the File menu, click Save as

Select All Files in the Save as type list, and then type Exe.reg in the File name box. Select Unicode in the Encoding list. Save it and remember the file location.

Go to the file location and right click on the EXE.reg file and select "merge"

Restart the PC.

For alternative ways to fix this issue and a bit more info view this page from Microsoft

Solution 2:

Back up the registry http://windows.microsoft.com/en-us/windows7/Back-up-the-registry

  1. Go to Start, type regedit and press Enter.
  2. Navigate to the following key: HKEY_CLASSES_ROOT\.exe
  3. In right-side pane, change the value of the Default key to exefile.
  4. Now go to HKEY_CLASSES_ROOT\exefile\shell\open\command
  5. In right-side pane, change the value of the Default key to: "%1" %*.
  6. Now exit Registry Editor and restart your Windows.

See if this helps in opening applications with their respective program. (answer found here: http://answers.microsoft.com/en-us/windows/forum/windows_7-files/wrong-file-association-every-application-tries-to/c72d3210-b4a4-4d09-b5e9-85d793ff18a5)