Fix: What To Do if Removing a Virus Blocks Executable (.EXE) Files From Opening

Categories: Guides, Tools, Windows

I have recently observed that after removing certain fake anti-spyware viruses (such as “Windows Security Center” or “Anti Virus 2010″), all executable (.exe) files will no longer open.  No matter what file you try to open – iTunes, Firefox, or even Malwarebytes – they will not open because they are all .exe files.

To fix this problem, I came across a process that fixes the registry keys that have been changed due to this virus.

The Problem

When attempting to open any executable file, you see the image shown below.  It is a notification asking you to choose what program you would like to open the file with, which means Windows does not understand how to open .exe files.

The Solution

Disclaimer: Before you start this guide, please keep in mind that this is an advanced procedure and you could potentially end up doing more harm than good by following this guide.  If you are not comfortable with the procedures mentioned in this guide, please call your computer’s manufacturer for support or bring it to an authorized PC technician.  We can take no responsibility for damage done to your system by following this guide.

Step 1: Open the Run dialog box by going to Start -> Run or pressing WIN + R.  Then open the command prompt by typing “command” (instead of typing “cmd” because “cmd” links to an .exe file which will not open).  ”Command” links to a .com file which is not affected by the virus.

Step 2: Once you have opened the Command Prompt, type “regedit” and hit enter.

If you can’t open regedit (which is certainly possible because it is an executable file itself), try typing the following commands, one at a time, and press enter after each one.

cd \

cd \windows

copy regedit.exe regedit.com

start regedit.com

This makes a copy of regedit in the form of a .com file so it can be opened.

Step 3: As a precaution you should back up your registry.  To do this, go to File->Export to save a backup file.  You should save this backup to a USB flash drive or other type of portable media just in case you can’t access your hard drive.

Leave the Registry Editor open after you have made a backup because you may need it in the next step.

Step 4: You will now need to run a special registry file that will re-establish the file associations for executable files.  This file is specially tailored for your operating system, so make sure you use the correct file.  You will need to right click these files and select Save As to download them to your computer.

After downloading the correct file for your operating system, you need to try opening it to add those values to the registry.

a) You can first try double clicking the file (or right clicking it and selecting Merge).  If this works you can skip to Step 5.

b) If a) didn’t work, go back to the Registry Editor which you opened in Step 2 and go to File -> Import.  Navigate to the .reg file you downloaded and select it.

c) If neither of those worked, check out the final section of this guide for more help.  Windows XP users can check out this guide which offers the registry fix in a .COM file format.

Step 5: If you were able to successfully install the registry fix for your operating system, you should be good to go now.  Restart your computer and try opening any executable files to see if it worked.

If you encounter problems after changing your registry, you can restore the backup you made in Step 3.

If you still have problems

I’ve dealt with a few computers that have been afflicted with this problem, and I have discovered that there is a tremendous amount of variability that can occur.  If this guide wasn’t able to help you, I recommend checking out the following guides which offer more solutions:

If you’re still stuck after that, post in the comments below and provide as much information as possible.

Remember, if in doubt: call your computer’s manufacturer for support or contact an authorized PC technician.  We can take no responsibility for damage done to your system by following this guide.

About the Author

Justin Gonzalez is a contributor at Techerator and is currently studying Aviation at the University of North Dakota.

About the Author

Evan Wondrasek is the founding editor of Techerator and is a software engineer in Minneapolis, MN. Evan recently graduated from the University of North Dakota with degrees in Electrical Engineering and Computer Science, and enjoys web design, vanilla lattes, and all things tech.

Related Posts

Comments

  1. Gonzo Mar 23, 2010

    Wow you are so smart! This really helped me out today!

  2. joe Mar 31, 2010

    work perfectly THANK YOU!!!!

  3. Ken Mar 31, 2010

    AMAZING … I've been struggling with this for the past week. I appreciate your knowlege!

  4. Jermey Apr 5, 2010

    I cant even open comman. please help!

    • Evan Wondrasek Apr 21, 2010

      Hi Jeremy,

      Have you tried opening 'command' in Safe Mode?

  5. Happyteacher Jul 5, 2010

    Omg… I love you both. I could manage to remove the insidious crap from my work comp. but I really hate bringing it to tech support. They judge me and mock me, then just wipe the drive clean and I have to reset everything back the way I like it and lose all of my files.

    You saved my but.

  6. Taylor Duncan Jul 7, 2010

    I plan on pursuing a minor in computer science. Is there any advice you could give me or books to recommend? Computers have always interested me and I intend obtaining as much knowledge as possible so I would be able to overcome problems on the the job and assist friends, because they already come to me for their troubleshooting. And one friend came to me with this problem and I wasn't able to help.

  7. Evan W. Jul 7, 2010

    Hey Taylor,

    One thing you need to consider about Computer Science is that it *isn't* working with computers very much – it's more about programming, logic, algorithms, and mathematics. In my computer science coursework, we didn't study anything about fixing computers or how to use computers, instead we studies languages like Java, C++, Assembly, and Perl, as well as studying computer science theory involving databases and algorithms.

    If you're looking to work with computers (rather than to write code), you might want to look into the fields of IT (Information Technology) or ISYS (Information Systems). In these fields you'll work with computers on more of a practical standpoint, which it seems you might be interested in.

    I haven't taken any ISYS or IT classes, but I worked as an IT technician for 4 years in college – fixing computers, making websites, and working on the network – and I can tell you my computer science (or electrical engineering) background had nothing to do with that type of work.

    As for Computer Science material, you'll basically get a crash course when you start. I went in with some self-taught programming experience which helped, but once you learn “how to program” you can basically program in any language after learning the syntax.

    Hope some of that helps!

    Evan

  8. Taylor Duncan Jul 8, 2010

    Thanks, your reply really helped me with my definitions. Looks like I been staring in the wrond direction. And by the way, I like yal's site! It's got some pretty good information written in here. I'm going to be looking here for future reference.

  9. Evan W. Jul 8, 2010

    Glad to hear, thanks for reading!

  10. Taylor Duncan Jul 8, 2010

    Thanks, your reply really helped me with my definitions. Looks like I been staring in the wrond direction. And by the way, I like yal's site! It's got some pretty good information written in here. I'm going to be looking here for future reference.

  11. Evan W. Jul 8, 2010

    Glad to hear, thanks for reading!

Trackbacks

There are no trackbacks on this entry.

blog comments powered by Disqus