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:
- click on the Start Menu, choose run, type regedit and click OK.
- 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
/ LI>
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 previusly tried to run it from and then run it again, that can help avoid triggering compatibility mode.
Original article: http://blogs.msdn.com/ B /astebner/archive/2010/09/17/10064318.aspx