How to revert an accidental file association

6

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?

Ahmed Ezz

Posted 2012-10-20T21:28:58.483

Reputation: 61

Interesting. Even holding down Shift I don't see this option for .exe files. Can anyone else reproduce this incredibly-useful windows feature? – RJFalconer – 2015-03-18T17:39:24.117

Create a link to an .exe file and right-click on it. Worked for me. – Dmitry Grigoryev – 2015-05-25T01:59:34.873

2

I've voted to reopen this question so that we can switch the dupe direction between this and this other question, since this one has better answers.

– Ben N – 2016-01-25T00:53:43.163

Answers

4

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

Moab

Posted 2012-10-20T21:28:58.483

Reputation: 54 203

3

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)

BeamerDan

Posted 2012-10-20T21:28:58.483

Reputation: 31