Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

How to fix compatibility mode error that can appear when installing Windows Phone Developer Tools or Visual Studio 2010

How to fix compatibility mode error that can appear when installing Windows Phone Developer Tools or Visual Studio 2010

Rate This
  • Comments 52

I have heard from a few people who tried to install the final release of the Windows Phone Developer Tools but get an installation error like the following:

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.

The link in the error message points to the Visual Studio 2010 readme because this issue can affect all editions of Visual Studio 2010, including WPDT.  Item 2.1.10 in that readme provides a workaround for this issue.  In my past experience, that workaround has proven to be incomplete though, so here are some updated steps that usually help solve this type of error:

  1. Click on the start menu, choose Run, type regedit and click OK.
  2. Browse to each of the following keys and delete any value that refers to the WPDT setup program (named vm_web.exe):

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

If the above doesn’t help, then you can also try to save vm_web.exe to your computer and run it from there.  When compatibility mode is triggered by Windows, it is based on a full path to the setup executable, so if you save it to a different location than you previously tried to run it from and then run it again, that can help avoid triggering compatibility mode.

  • My problem resolved thanks

  • As simple as saving the download directy to C:/ (no regedit) and it worked right away. Thank you so much!

  • Thanks so much! :] I appreciate the post! :D

  • Thanks. You saved my time :)

  • This really helps me. Thanks

  • thank u very very much

  • osom!

  • after deleting from regedit as told..just placed the .exe file on desktop and now its installation beging again ! *fingers croossed* may it work now

  • Did the same thing....just renamed the exe and run it successfully...Thanks for the valuable posts guys

  • Thanks a bunch.. this saved a lot of time.

  • I tried to download Visual C++ 2010 Express but I had an error message about compatibility. I'm on Win 7 Home Premium x64 (forgive me about my syntaxis, I'm just french!). Good rollin'!

  • Hi nicolascadot9@gmail.com - The title of this blog post refers to the Windows Phone tools, but the same type of workaround should work for all editions of Visual Studio.  Can you please give the workaround a try and let me know if it helps solve this issue on your computer?

  • It worked for me thanks...

  • Thanks a ton Aaron!!

  • I fixed this my simply renaming the downloaded installer to "install".

Page 2 of 4 (52 items) 1234
Leave a Comment
  • Please add 1 and 4 and type the answer here:
  • Post