Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

When you run an .exe file on a Windows Vista-based computer, the file may start a different program. Additionally, the icon for the .exe file may not appear as expected. You may also receive additional errors from the .exe file or from the program that starts.

Resolution



Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows To resolve this problem, reset the registry subkey for the file association of the .exe file back to the default setting. To do this, follow these steps:

Windows Vista and Windows 7:

  1. To open the Task Manager, press CTRL + SHIFT + ESC.

  2. Click File , press CTRL and click New Task (Run…) at the same time. A command prompt opens.
    Click File , press CTRL and click New Task (Run…)

  3. At the command prompt, type notepad, and then press ENTER.
    At the command prompt, type notepad, and then press ENTER

  4. Paste the following text 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):
     
  5. On the File menu, click Save as.
    On the File menu, click Save as

  6. Select All Files in the Save as type list, and then type Exe.reg in the File name box.

  7. Select Unicode in the Encoding list. Save it and remember the file location.
    Select Unicode in the Encoding list. Save it and remember the file location.

  8. Return to the Command Prompt window, type REG IMPORT [filepath]Exe.reg, and then press ENTER.
    Return to the Command Prompt window, type REG IMPORT [filepath]Exe.reg, and then press ENTER.
    Note[filepath] is a placeholder which is to input your Exe.reg file location (e.g. C:\Exe.reg).

  9. Click Yes, and then click OK in response to the registry prompts.

  10. Log off from your account. Then, log back onto your account.

Note You may have to restart the computer to restore the program icons to their original appearance.

Note After the problem is resolved, delete the Exe.reg file so that it is not mistakenly added back to the registry at a later date.

Windows XP

  1. Click Start, then click Run.

  2. In the Open box, type explorer and then click OK.

  3. Navigate to the Windows directory (e.g. a typical path may be C:\Windows) and locate regedit.exe.

  4. Right-click on regedit.exe and select Run as. Uncheck "Protect my computer and data from unauthorized program activity" and click OK.

  5. Using Regedit, locate and then click on the following registry key:
    HKeyCurrentUser\Software\Classes

  6. On the left panel, right-click on the following registry subkey: '.exe'

  7. Select Delete and then click OK.

  8. On the left panel, right-click on the following registry subkey:
    'secfile'

  9. Select Delete and then click OK.

  10. Close Registry Editor.


 

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×