DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 950505 - Last Review: December 19, 2011 - Revision: 8.0

On This Page

Problem description

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.

Windows Vista users may choose to have us fix this problem for you. To do this, go to the "Fix it for me" section. To fix this problem yourself, go to the "Let me fix it myself" section.


Note Windows 7 users should go to the "Let me fix it myself" section.

Fix it for me (Windows Vista only)

To fix this problem automatically on a computer that is running Windows Vista, click the Fix it button or link. Click Run in the File Download dialog box, and then follow the steps in the Fix it wizard.


Fix this problem
Microsoft Fix it 50194


Note This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.

Note If you are not on the computer that has the problem, you can save the automatic fix to a flash drive or to a CD, and then you can run it on the computer that has the problem.

Next, go to the "Did this fix the problem?" section.

Let me fix it myself

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  (http://support.microsoft.com/kb/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.
    Collapse this imageExpand this image
  3. At the command prompt, type notepad, and then press ENTER.
    Collapse this imageExpand this image
  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.
    Collapse this imageExpand this image
  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.
    Collapse this imageExpand this image
  8. Return to the Command Prompt window, type REG IMPORT [filepath]Exe.reg, and then press ENTER.
    Collapse this imageExpand this image

    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.


Did this fix the problem?

Check whether the problem is fixed by running an .exe file. If the .exe file runs correctly, you are finished with this article. If the problem is not fixed, you can contact support (http://support.microsoft.com/contactus) .

For help with common system maintenance tasks in Windows Vista, visit the following Microsoft Web page:
Fix problems with common system maintenance tasks (http://support.microsoft.com/gp/system_maintenance_for_windows)

APPLIES TO
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Starter
  • Windows Vista Ultimate
  • Windows Vista Business 64-bit Edition
  • Windows Vista Enterprise 64-bit Edition
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Ultimate 64-bit Edition
  • Windows 7 Enterprise
  • Windows 7 Home Basic
  • Windows 7 Home Premium
  • Windows 7 Professional
  • Windows 7 Starter
  • Windows 7 Ultimate
Keywords: 
kbsurveynew kbmsifixme kbfixme kbexpertiseinter kbtshoot kbprb kbcip KB950505
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support