72

I'm trying to install Visual Studio 2012 Express for Windows Desktop and every time I run the installer I get this error:

"Windows Program Compatibility mode is on. Turn it off and then try setup again."

I checked the file properties and compatibility mode was off. Googling found that changing the name to "vs_premium.exe" or "vs_ultimate.exe" or changing the registry keys might help, but the name changes had no effect, and there were no registry keys to delete. I have restarted my machine several times to no avail.

Changing to Visual Studio 2013 is not an option for me, as my work computer has Visual Studio 2012 on it which they will not update to 2013, and I need to work on my project on both computers.

The computer I am using has a Windows 8.1 HP Pavilion g6. I have installed Visual Studio 2013 for Windows Desktop, Web, and Windows, as well as the 30-day trial for Professional (which has recently expired). I have also installed Visual Studio 2012 for Windows Phone but I have not used it yet.

shA.t
  • 16,580
  • 5
  • 54
  • 111
einsteinsci
  • 1,137
  • 1
  • 8
  • 22

16 Answers16

132

Previous posts are correct in that compatibility mode appears to be based entirely on file names. There is a simple method for determining precisely which name Windows expects:

Right-click the file, select Properties and navigate to the Details tab. There should be an entry labelled "Original filename". Simply rename the file accordingly and it should run happily.

Screenshot:

skuntsel
  • 11,624
  • 11
  • 44
  • 67
CJPN
  • 1,497
  • 1
  • 9
  • 8
94

If you downloaded Visual Studio 2012 and Visual Studio 2013 at the same time and one was renamed with a "(0)" suffix (just as I did) then change the installer to the original name will probably fix it, because "somehow compatibility checking is based on file naming"

shA.t
  • 16,580
  • 5
  • 54
  • 111
ohw
  • 1,619
  • 12
  • 20
  • 2
    I knew to rename the VS2012 one wdexpress_full_2012.exe instead of wdexpress_full.exe. In addition, I said I tried renaming it to vs_premium.exe and vs_ultimate.exe after it didn't work the first time. I found a workaround anyway. – einsteinsci Apr 16 '14 at 19:17
  • 1
    Seems any variant of the file name causes the application to be flagged as being run in compatibility mode. For example `win1express_full.exe` will not work either, but `win8express_full.exe` works fine. Very obscure issue. – Will B. Oct 29 '14 at 14:32
  • so it was that easy... same problem occurs for VS tools – Sebastian 506563 Dec 15 '15 at 11:58
  • Note that the fastest way I've found to see what the expected name for compatibility checking should be is to see what executable name the UAC prompt uses to describe the program. – Tetsujin no Oni Sep 30 '16 at 20:37
  • same applies for `vs_teamExplorer.exe` from MSDN downloads. – Alan Sep 21 '18 at 15:46
  • 1
    The connect link is dead now, unfortunately. – jrh May 27 '20 at 18:57
25

I just have to Rename the setup name. I rename the setup file to vs_ultimate and it worked.

shA.t
  • 16,580
  • 5
  • 54
  • 111
hossein chaker
  • 251
  • 3
  • 2
17

In case you mounted it, first extract the content before you install. it worked for me.

Had the same issue installing vs_ultimate on Windows 10, It tells me to turn compatibility mode off which I didn't know to do. After reading all the solutions above without success, I was able to solve it on my own.

I mounted the .iso before installing which was giving me problem, but later as I extracted it into a desktop folder, it installed fine.

shA.t
  • 16,580
  • 5
  • 54
  • 111
boluvi
  • 171
  • 1
  • 2
6

I couldn't find a solution, but I could find a workaround. I downloaded the offline installer (ISO) and ran that instead. It's not a solution, but it should work in this situation.

einsteinsci
  • 1,137
  • 1
  • 8
  • 22
5

I ran into this problem and the solution for me was to rename the file back to its original name. I had downloaded it as "vs2012sdk_full.exe" but the original name was "vssdk_full.exe". When I ran it as "vs2012sdk_full.exe" I got the compatibility mode error. Once I renamed it back to the original "vssdk_full.exe" it worked.

shA.t
  • 16,580
  • 5
  • 54
  • 111
Jack A.
  • 4,245
  • 1
  • 20
  • 34
  • I think your answer is just an example of most [upvoted answer](http://stackoverflow.com/a/23114542/4519059) here ;). – shA.t Jul 30 '15 at 06:08
  • Trying to install the SDK for VS 2013 Pro, downloaded some file with a lengthy and long-winded filename. Renamed to "vssdk_full.exe," worked like a charm. – Kevin B Burns Dec 14 '17 at 14:52
4
  1. Open The Run (Win+R) And type Services.msc.
    Found Program Compatibility Assistant Service Then Disable Service and Stop it.

  2. Open the Run (Win+R) And Type Gpedit.msc.
    User configuration-->Administrative Templates-->Windows Components-->Application Compatibility
    And check Enable button then restart system.

shA.t
  • 16,580
  • 5
  • 54
  • 111
Mr.Dani
  • 41
  • 1
3

Run as administrator. And for my 2013 installer I renamed it to be vs_professional.exe

And it worked.

BeachMiles
  • 438
  • 3
  • 7
1

In a round about way I discovered the problem on my system. Check the properties of the installer. Mine was blocked because it was downloaded from another system. Click unblock. Voila! If you can't find the location of the installer, run it again. When it fails, leave it running. Open task manager, right click the installer, then open file location. This will take you to the folder containing your installer.

1

mount the ISO file and run the setup as a from the disk.

Ballin
  • 44
  • 5
1

I had the same issue, my solution was to run it in administrator mode and it seemed to work just fine.

Despair
  • 11
  • 1
0

Run as Administrator worked for me.

f0rza
  • 480
  • 3
  • 17
0

I had the same problem. I had run the installer from an ISO, reading from the DVD image.

The solution was to simply take the ISO and uncompress it as a .RAR into some folder, and everything worked.

0

Well, filename varies from versions to versions. Fix:

  • Right Click on file
  • Select Properties
  • Select "Details" tab
  • Rename that file to value of "Original Filename"

enter image description here

Gray Programmerz
  • 479
  • 1
  • 5
  • 22
0

In case you have mounted the iso, copy the all the files to a separate folder on Desktop and run it, worked for me.

Abhay Gaur
  • 21
  • 7
-1

This is the solution:

  • Right Click on Visual Studio Setup Icon

  • Select Properties

  • Open Compatibility Tab

  • Check Run This Program In Compatibility Mode
  • Select Your Windows Version (ex:Windows 8)
  • Finally Click OK And Install Your Program Again