Friday, 19 February 2010

SOLVED: "Visual Studio setup cannot run in compatibility mode." error when attempting to uninstall Visual Studio 2010 Beta 2

If you are having problems upgrading from Visual Studio 2010 Beta 2 to Release Candidate (RC1) then hopefully this will get you back on your way.

Scenario

When trying to get rid of Visual Studio 2010 Beta 2 so I could update it to the RC1 release on my home computer I ended up getting some annoying errors.

The following error message was being displayed every time I tried to click uninstall:

---------------------------
setup.exe
---------------------------
Visual Studio setup cannot run in compatibility mode. For more information see the 'Installing' section in the

Visual Studio Readme at "http://go.microsoft.com/fwlink/?LinkId=143397".
---------------------------
OK  
---------------------------

uninstall-visual-studio-2010-beta-2

This error cropped up for me because I tried to uninstall Visual Studio before I uninstalled Team Foundation Server. This caused the uninstall to abort which made Windows think that the uninstaller had problems. It tries to be helpful by setting the setup.exe to run in compatibility mode but as the error message above indicates - you cant run the Visual Studio setup application in compatibility mode.

So I turned to the documentation suggested in the link above but it didn't make it clear where I was supposed to find the setup.exe or how exactly I could change it. This article aims to fill that gap.

Solution

The setup.exe application can be found in the following location:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Microsoft Visual Studio 2010 {EDITION} Beta 2 - ENU

The edition will be whichever edition you installed. I had the following folders on my computer as I upgraded to the ultimate edition after first trialling professional:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Microsoft Visual Studio 2010 Professional Beta 2 - ENU
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Microsoft Visual Studio 2010 Ultimate Beta 2 - ENU

To change the compatibility mode take the following steps:

  1. Right click on setup.exe and click Properties
  2. Switch to the Compatibility tab
  3. Untick the "Run this program in compatibility mode for" checkbox
  4. If you have a button at the bottom of the dialog entitled "Show settings for all users" click this and repeat step 3 in this window.
  5. Click OK until you have dismissed all dialog windows
  6. Go back to the uninstall entry and uninstall as normal.

Power User Bonus Tip

I love little tips like this but usually I forget them by the time I get around to being able to use them again. To get the uninstall window open you can enter the following command in Start | Run:

control appwiz.cpl

kick it Shout it vote it on WebDevVote.com

42 comments:

zeroone said...

cheers mate! worked like a charm... uninstall in progress :)

Anonymous said...

I wish I would have found this info befor blowing up my 64bit Windows 7 machine. Thanks very much for the insight.

Anonymous said...

I ran into a similar problem with the RTM. Nothing worked. I then uninstalled AppVerify (x64) and the Windows 7 Logo tools and the install worked.

Anonymous said...

This helped a bunch.

Thanks.

Traci said...

Thank you so, so much!

Robert said...

A lifesaver! Thanks a million.

PinAnt said...

thank you very much.

PinAnt said...

thank you very much

David Cho said...

I don't have 2010 beta on my machine and am still getting the same error. I have VS 2008 trial.

Any help would be appreciated. This is just the latest of the ongoing onslaught of Microsoft "issues" lately and I am just fed up.

Daniel said...

Thanks a million! Clicking the button in step 4 was the magic.

Anonymous said...

Copy the VM_WEB.exe in c:\User\Yourusername. run your VM_WEB.exe and should be good.


-Swami

Mohammad Elsheimy said...

Thank you very much, this solved the problem completely for me. :)

Adam said...

Please Help
Whenever I go to untick it it is blocked!!!!!!!!!!!!!! very frustrating!!!!!!!!!!
HELP!

Anonymous said...

Solved
Thanks

Anonymous said...

yes, thank you but this didn't work for me.

I found the download for VS2010RTM.htm in the Readme.htm distributed with the installation files.

located the section:
2.1.10 Visual Studio Setup cannot be run in Program Compatibility Mode

Followed the steps and VIOLA.

Fernando said...

Thanks!! Post very good!!

Anonymous said...

Hey,

Your solution worked, thanks, and even you tip is also great!!!! keep posting
Sunil

Anonymous said...

Thankyou - Worked like a charm! Steve M

Blago said...

Thank you! :)

Anonymous said...

Love people like you!

Anonymous said...

open temp folder -> clicking on start and type: %temp%
delete files in temp folder -> sometimes some files don't delete...
execute setup.exe from dvd
in the temp folder -> change the compatibility settings of setup.exe
execute setup.exe in temp folder

Anonymous said...

open temp folder - clicking on start and type: %temp%
delete files in temp folder - sometimes some files don't delete...
execute setup.exe from dvd
in the temp folder - change the compatibility settings of setup.exe
execute setup.exe in temp folder

Anonymous said...

I encountered this problem with Windows 7. When I followed the instructions listed here I discovered that the checkbox was already unchecked, but Windows XP was the operating system in the dropdown box. So, I checked the compatibility box which enabled the dropdown list, selected Windows 7, then unchecked the box. I did this on the Advanced tab as well. It solved the problem..Love the internet and user input!!!

Don said...

I encountered this problem with Windows 7. When I followed the instructions listed here I discovered that the checkbox was already unchecked, but Windows XP was the operating system in the dropdown box. So, I checked the compatibility box which enabled the dropdown list, selected Windows 7, then unchecked the box yet it did not solve the problem for me.. I'm using Windows 7 64 bits.. Please Help me.. What else do i need to do?

Niraj Kumar Jha said...

I encountered the problem while installing windows phone 7.1 sdk on my Windows 7. The article helped solve my problem. Thanks a lot.

z3d said...

Thanks! Worked like a charm!

Anonymous said...

Thanks very much! I solved the same problem with Windows Phone SDK 7.1 setup.

wrx said...

I really gonna say thank you for the poster who solve my problem.
Thanks you so much!

Ronelle said...

Thanks so much!!! I had the hardest time trying to figure this out!!

Scott Meridew said...

Just save the vs_proweb.exe file instead of hitting 'run'. Then open the folder where you saved it and right-click .. 'run as administrator' and you are all set.

Yuuna said...

Thank you!

jparks1994 said...

refer to "Don" post on 15 August 2011, I have the identical problem, does anyone have the solution?

Anonymous said...

Thanks for your post!

Serenity Dreamer said...

Thank you very much Don! You've made it! Now I can make applications for my club!! Thanks a bunch!!

Laura said...

Thank you!

Anonymous said...

Thanks! Worked as stated.

Vaijeyanthi Krishnamurthy said...

Thanks it was v useful

LaĆ­s said...

Thank you, this worked well.

duoc tran said...

good tks so much!!

Chris Wilson said...

IT WORKED! THANK YOU THANK YOU!

Ace Monkey D said...

I CANT FIND THE FRIKIN SETUP.EXE FILE WHERE DO I FIND IT?!?!?!?!

rtpHarry said...

@AceMonkey - What are you trying to uninstall, as I doubt you're still trying to uninstall Visual Studio 2010 Beta 2 :)