Thursday, August 9, 2012

Visual Studio - Error - Visual Studio Setup cannot be run in Program Compatibility Mode

Error Description
I have captured screenshot of the error instead putting description (seeing is believing)















Solution-01Check Program Compatibility Assistant registry settings

Steps:
1. Run regedit. 'Start > Run > regedit'
2. Browse to each of the following keys and delete any value that refers to setup.exe in the Visual Studio install path:
    - HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags \Compatibility Assistant\Persisted

    - HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion \AppCompatFlags\Layers















3. Rerun setup

Additional Information:
Sometimes setup.exe is set to OS compatible mode which might prevent it to run on existing OS. In that case clear out compatibility setting and rerun the setup.

Steps:
1. locate setup.exe.
2. Right-click setup.exe and then click Properties.
3. On the Compatibility tab, clear "Run this program in compatibility mode for" 

4. Then click OK


























Resources:
1. http://go.microsoft.com/fwlink/?linkid=143397

No comments: