Restore Exe File Association Windows 7

Posted on

This question already has an answer here:

  • How do you associate the .exe file extension with a program in Windows? 2 answers
  • How do I fix broken .exe file association in Windows Vista? [duplicate] 1 answer

I recently downloaded an ASP.NET project, which was a self-extracting zip file. I right-clicked the file and chose Open With → Microsoft Visual Studio. Now apparently it unzipped and set the default program for all .exe files to Visual Studio.

How can I fix the .exe file extension so it is not associated with Visual Studio?

GeorgeGeorge

marked as duplicate by Canadian Luke, randomJul 29 '14 at 4:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

You can fix it by taking a look at this Microsoft page: KB950505.

There is a 'Fix it for me' program linked from the page. Alternatively, you can manually follow these directions:

Because you cannot open .exe files normally (this also happens with certain viral infections), you have to use a roundabout way to make the necessary changes.

  1. Open Task Manager (CTRL-ALT-DEL)

  2. Press and hold CTRL and click File - New Task (Run...). This will open a Command window.

  3. Type 'notepad' and press Enter. This will open Notepad.

  4. Paste the following text into the Notepad window:

    Windows Registry Editor Version 5.00
    [-HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.exe]
    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.exe]
    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.exeOpenWithList]
    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.exeOpenWithProgids]'exefile'=hex(0):

  5. Click File - Save As.... Set the file type to All Files, name the file 'fix.reg', and set Encoding to 'Unicode'. Remember where you've saved it.

  6. In the command window, navigate to where you saved fix.reg and type 'reg import fix.reg'

  7. Click Yes and OK to any prompts.

  8. Reboot your computer.

Note: I had issues pasting the specified text for the registry import. If the above text doesn't work, go to the KB article linked above and paste from there.

Jeff F.Jeff F.

Not the answer you're looking for? Browse other questions tagged windows-7file-association or ask your own question.