Visual Studio 2012 Install Fails: Program Compatibility Mode is on - visual-studio-2012

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.

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:

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"

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

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.

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.

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.

Open The Run (Win+R) And type Services.msc.
Found Program Compatibility Assistant Service Then Disable Service and Stop it.
Open the Run (Win+R) And Type Gpedit.msc.
User configuration-->Administrative Templates-->Windows Components-->Application Compatibility
And check Enable button then restart system.

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

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.

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

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

Run as Administrator worked for me.

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.

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"

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

Related

How to get latest or commit with TFS server from Windows Explorer?

My need
Currently I have to open Visual Studio to make a get latest or a commit pending changes.
I want to do that the same way with TortoiseSVN right in Windows Explorer.
What I have tried
I made google research and comes down to using the tool called TFS 2012 Power Tools
Someone also mentioned about this issue here
Though after installed, I got nothing working as espected. Wondering did I do wrong then...
I'm using Windows 8.1 and Visual Studio 2012 Web Express.
Question
How should I do to install it properly and get it work after all then?
Assuming that when you installed the power tools you enabled shell integration and then logged out/back in to active them, then you need to do a few things:
Do an initial 'get' from TFS using Visual Studio Team Explorer and make a note of your workspace folder.
In Windows Explorer, right click that workspace folder. You should see the context menu items appear.
Most people having trouble with the context menu appearing have forgotten that to log out and log back in, as Windows Explorer needs to be restarted to pick up the new shell extension.

Unable to locate package source : vcRuntimeDebug_amd64\cab1.cab visual studio

I tried to install Visual Studio 2012 . but it showing me "Unable to locate package source" I can select "Download from the internet" or "Provide a location to search for the packages" And this is path that comes up:
C:\Users\JA\Download\packages\vcRuntimeDebug_amd64\cab1.cab
(the 'packages' folder does not exists) When I select to download from the internet its showing up again after some time, I searched for "vcRuntimeDebug_amd64" folder but it doesn't contain "cab1.cab" file ;/
Note please, that i runned setup file as administrator and i disable firewall .
I had the same problem but with Windows Phone 8 SDK. I tried several things (which are detailed below, in my previous answer), and the best option was to download the ISO, found in the Install Instructions section:
http://www.microsoft.com/download/details.aspx?id=35471
After finishing, it said it couldn't download that runtime, but at least the emulator is running fine. I guess you could manually download that runtime
afterwards if you have any problems. Here's the link:
http://www.microsoft.com/download/details.aspx?id=30679
Previous attempts:
I downloaded the Visual C++ Redistributable for Visual Studio 2012 Update 4 to see if that way the installer skipped that step, but it didn't work.
Then I looked for cab1.cab in my disk and found it in several folders, being this one the one that worked:
C:\ProgramData\Package Cache\{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}v11.0.61030\packages\vcRuntimeMinimum_amd64
Of course that GUID will be different in your case, so you should look for a vcRuntimeMinimum_amd64 folder.
Inside that folder was not only the cab1.cab but also a vc_runtimeMinimum_x64.msi file. When I told the installer to use that folder, it still didn't work. Then I chose "Browse" but when I opened that folder it didn't show any file because the installer was looking for vcRuntimeMinimum_x64 (without the underscore). I typed "." in the textbox so it showed all the files, I chose vc_runtimeMinimum_x64.msi and the installation continued. It took a while but it worked.
Later I had the same issue with sdk_tools35res.cab. I told the installer to use v3.11.50727\packages\sdk_tools35res\sdk_tools35res.msi and the process continued.
But in the end, I got three errors: Tools for .Net 3.5, MS VC++ runtime and .NET 4.5 SDK. So then I decided to download the ISO.

IsVisualStudio2012ProInstalled() method not found error when running an SSIS package from VS2012

I'm trying to run an SSIS package in Visual Studio 2012. When I click the "Start" button I get this very odd error in a popup from Visual Studio:
Method not found: 'Boolean
Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'.
(Microsoft.DataTransformationServices.VsIntegration)
Clicking on the show technical information, I get this stack trace:
===================================
Failed to start project (Microsoft Visual Studio)
===================================
Method not found: 'Boolean Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'. (Microsoft.DataTransformationServices.VsIntegration)
------------------------------
Program Location:
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
Has anyone ever seen this error before or know what the issue might be? A bit of googling turned up absolutely nothing for me.
I was able to happily develop and run SSIS packages from Visual Studio 2012 without any issues just a couple days ago (I did reboot my PC over the weekend and some windows updates were installed)
ETA:
I was able to find a couple very recent technet posts about this here and here so I suspect this was something that broke in an update over the weekend. One post says he solved the issue by reinstalling, but of course I'd rather not go that route if I don't have to.
Open the Developer Command Prompt for VS212 as Administrator
execute the command cd "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies"
execute the command gacutil /if Microsoft.SqlServer.Dts.Design.dll
restart Visual Studio
Source msdn Fail to start project
For visual Studio 2013 execute the command cd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies" in point 2 and then execute point 3 and 4.
The following is the command we have to use to resolve the issue:
"C:\Program Files\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\gacutil.exe" /if "C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.SqlServer.Dts.Design.dll"
Make sure that your dll file and Gacutil.exe file locations are correct. It may be different in other systems.
Note: You should open your “Command Prompt” as an administrator to run the above command.
I experienced the same problem.
Downloaded and installed SQL Server 2012 SP2 and that seemed to have fixed the problem.
Hope this helps!!
This is probably happening because you have Visual Studio 2013 and the BI tools for it installed also. If you use Visual Studio 2013 for the same package it will probably work. The other answer suggesting the run of gacutil to register the old version may have negative impacts later when you want to use the Visual Studio 2013 tools for SSIS.
I had the exact same thing just happen and miraculously now my machine has been "fixed".
(I actually had it happen on both a Win 8.1 machine and a new Win 7 machine.)
My colleague and I noticed that the SSIS toolbox was missing from my IDE. After opening an SSIS package, going to the SSIS menu, and adding back in my "SSIS Toolbox", for some strange reason, my packages now run fine.
I'm guessing a recent update reset the behavior of the IDE.?.?
If this black magic worked for me, I'm hoping it will work for others.
EDIT:
I had the behavior revert itself.
I uninstalled SQL Server 2012 SP2 HF 5522, then rebooted
I then uninstalled SQL Server 2012 SP2, then rebooted
After that, my IDE still gave the error.
I then tried to apply SQL Server SP1 CU 9, but my environment said it wasn't needed.
I then rebooted one last time.
My SSIS Packages run again.
Voodoo...
If you're running across this issue somewhat after the fact (as I did), it appears that it has been fixed in a later release of the SSDT-BI tools installer. Either that, or the process of re-installing fixed it for me.
The file name of the installer on the download page has not changed, but there was a new version released in March of 2015. The new version number is 11.0.5583.0, and the previous version that was causing this error was 11.0.3436.0.
So a simple update might be sufficient. It worked for me with no changes to the GAC.

VMDebugger add-in crashes each time Visual Studio opens up

I'm experiencing the following error each time I open up an instance of VS 2012, for about a week
(so it's not due to the yesterday's Update 4).
Even if I click Yes, the error is shown again when I re-open Visual Studio.
Anyway, the VMWare debugger seems to be correctly loaded
(actually I don't use it, it came with VMWare workstation).
I can't isolate a single operation that caused the error to start appearing.
Anyone is experiencing the same error?
[Edit] See Attilas answer for a much easier solution producing the same result [/Edit]
For anyone who could not solve this problem by re-installing the VMWare plug-in but do not want to sacrifice all his VS settings, here is a solution that did work for me:
Export 'Menu and Command Bar Customizations' VS settings only using
Tools => Import and Export Settings... => Export selected environment settings
Deselect 'All Settings'
Select only 'All Settings/General Settings/Menu and Command Bar Customizations'
Open exported .vssettings file in a text editor, scroll to the end and remove the entry <add_toolbar Menu=... Name='VMware' .../> in the UserCustomizations section
Import edited .vssettings file using
Tools => Import and Export Settings... => Import selected environment settings
and restart Visual Studio to check if the error has gone.
I know this is an old thread, but I solved this problem with a rather simple step. Had the same scenario, clicking Yes in the popup window didn't change a thing.
What worked for me: you should start VS as an administrator, wait for the popup window and click Yes. After that the popup never came up again (even when VS was run as a non-administrator). So there was no need for me to uninstall the VMWare pluging (or the whole VMWare WS).
Run the VMware Workstation installer
Choose Modify/Change
Uncheck Visual Studio Plugin
Problem gone!
Run the VMware Workstation installer
Choose Modify/Change
Check Visual Studio Plugin
Problem back again!
Regards
Lemmy
one possible solution:
Tools => Import and Export Settings => Reset all settings
seems to work for me.
VS 2013
Tools > Customize.. > Toolbars
Here I selected VMware and clicked Delete button.
I really don't use this plugin, this was the easiest solution for me.
None of the solutions here worked for me since I have already uninstalled vmware a long time ago and I was not willing to re-install it again.
MSDN suggests that there should be a registry key under
Root\Software\Microsoft\Visual Studio\...\AddIns\...
for VMdebugger, just delete that entry (the whole folder) and it'll be gone.
This worked for me:
completely uninstall VMWare workstation, reinstall it (select or deselect the VS plugin as you wish)
old school
If the option to install for all users was requested these Registry entries must also be removed.
HKEY_USERS.DEFAULT\Software\Microsoft\VisualStudio\11.0_Config\Addins\VMDebugger.Connect
HKEY_USERS.DEFAULT\Software\Microsoft\VisualStudio\12.0_Config\AddIns\VMDebugger.Connect
They correspond to the following HKCU entries. Hunt and kill.
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\Addins\VMDebugger.Connect
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\Addins\VMDebugger.Connect
From VS2012 menu bar select [Tools] [Add-in Manager]
Then check mark the radio box to install VMDebugger.
Worked on my system:
Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.51209
Installed Version: Professional
Visual Studio Integrated Virtual Machine Debugger

Insufficient privileges when updating help files in Visual Studio 2012

I have Visual Studio 2012 Ultimate and I've downloaded the Visual Studio 2012 ISO from MSDN.
When trying to install the documentation:
I open Visual Studio as an Administrator
Follow these instructions as per the install's ReadMe file
On the menu bar for Visual Studio 2012, choose Help, Add and Remove
Help Content.
Help Viewer 2.0 starts, showing the Manage Content tab.
On the Manage Content tab, choose the Disk option button, choose the
Browse (…) button, and then navigate to the DVD drive.
Choose the helpcontentsetup.msha file, and then choose the Open button.
Under Available Documentation, the list of available content sets from the
DVD appears.
Choose the Add link next to the content set that you want
to install onto your local computer.
The items that you specify appear
in the Pending Changes column. You can remove an item from the Pending
Changes column by choosing the “X” next to the item.
Choose the Update button.
And click Update.
When I click Update, it progresses for about 3-4 seconds, and then it fails with an error:
The following errors occurred while performing the requested tasks:
An error occurred while updating content. You have insufficient
privileges to complete this task.
How can I resolve this issue?
Update
I'm running Help Viewer in Admin mode.
try this. It solved my problem.
change security permission of vs2012doc.iso to full control for your account.
Mount it
Install the documentation ONE BY ONE. Remember ONE BY ONE.
Might it help...
Change your machine date and try again. In my case work with "oct/01/2012".
This was using the Visual Studio 2013 but is likely to be similar to the help of Visual Studio 2012 and probably 2015. I have not tried it so you tell me.
I got the ISO with the help of vs2013 to Microsoft directly. Now I do not remember the address so I did not put it here. It is very easy to get around with google looking for.
When I'm using the Microsoft Help Viewer 2.1 with local installation way I get an error: Insufficient Privileges and not the books are installed.
What I will describe is possible for you to do so more easily. But I could not validate it and then they describe the steps I followed to do so.
The first thing I did was copy the entire contents of the ISO to a folder on my HDD for my comfort my case was in C:\T
With the command prompt navigate to the folder where it was copied from the iso content and the C:\T\Packagesrun the following winrar t * .cab
This causes a test winrar make all cab files and protest whenever any of them is corrupt.
This was to score those files that had to go down again, in my case only had a .cab file with problems
v2Visual_Studio_2011_NET_Framework_4_B1545_VS_100_en-us_13(b0ba5cce-2b72-f582-80f3-8a6165ef6b9b).cab
The following was download it directly from Microsoft in this direction,
 
http://packages.mtps.microsoft.com/v2Visual_Studio_2011_NET_Framework_4_B1545_VS_100_en-us_13(b0ba5cce-2b72-f582-80f3-8a6165ef6b9b).cab
All other packages I think are there too.
The next thing was to replace the damaged file with the new and final step is to go into the folder where the files of the Visual Studio Help are, in my case I always use to put this folder in a comfortable place for me.
D:\VS_2012_2013_HLP\VisualStudio12
Inside this folder there are other two \Incoming\Cab, we must ensure that the cab folder is completely empty.
The last thing is to enter the Microsoft Help Viewer 2.1 and say that the new power plant is one where we copy the contents of the ISO (D:\T\helpcontentsetup.msha). The rest is just install the books ..

Resources