Unable to disable extensions in Visual Studio - visual-studio

I am unable to disable/remove some extensions in Visual Studio 2015, including extensions like the "Multilingual App Toolkit" and "MySQL for Visual Studio" that I have installed myself. In several cases, both the Disable and Uninstall buttons are grayed out in the Extensions and Updates manager.
I've tried starting VS as administrator, and also launching VS in safe mode (using devenv.exe /safemode).
Why is it not possible to disable some extensions, and what is the correct way to safely disable them?

You can manage extensions from Visual Studio only if they use standard .vsix installer. If they use other installer like .msi you typically use Control Panel - Programs and Features to uninstall them.

Windows Control Panel -> Programs and Features can uninstall most of those addons.
For anything else, there is an awesome simple utility: Total-Uninstaller. It can uninstall virtually anything, including hidden stuff.
Warning: uninstalling too much can make Visual Studio crashing / unusable and can even damage Windows installation. Make sure to back up important info before proceeding.

Related

Visual Studio not installing extensions, even when all instances are closed

I am trying to install an extension from the Visual Studio 2022 Manage Extension window.
It says I have to close all Visual Studio windows, which I did, but it is still not installing.
What extension did you install? You can try to download the extension from the MarketPlace.
I fixed this the bad way
I basically just reinstalled Windows (I would not recommend you to do this, you should always search for a different solution first). I backed everything up, of course.

Can't de-activate Visual Studio Extensions. ReSharper deactivated itself

Most of my Visual Studio Extensions can't be deactivated or activated any more. I've searched for a solution and tried 'Clear MEF Component Cache' but that didn't work.
Another suggestion was to uninstall the extension, restart VS, uninstall the extension again (somehow the extensions are supposed to still there) and restart VS again. The problem here is, that some of the deactivated extensions cant even be uninstalled, so even if that works for some, it won't work for all of them.
I tried to repair DevExpress with the installer but its still the same. It's not too bad with DevExpress though, because DevExpress seems to at least be activated and still works. But somehow ReSharper deactivated itself and now I can't use it any more. I can't uninstall it via the 'Extensions and Updates'-window either. And if I hover the cursor over the 'Activate'-button, it says 'This product can not be DEactivated', which is odd, because it IS deactivated.
Any suggestions on what could be causing this and/or how to fix it?
I am using Visual Studio Professional 2015 Version 14.0.25431.01 Update 3.
The items are greyed out because they are installed per-machine, rather than per-user. Which basically means they were installed by an installer, rather than through Visual Studio's extensions dialog. ReSharper is one such application - it installs via an installer, rather than using Visual Studio's VSIX mechanism. You can't uninstall it from the extensions dialog, but have to go through the Add/Remove Programs dialog in the computer's control panel.
As for ReSharper being deactivated - check in Tools → Options → ReSharper to see if ReSharper has been suspended. In which case, just active it again. If not, go to Add/Remove Programs and either repair the install, or uninstall/reinstall.

Uninstall Visual Studio 2010 while keeping 2012

I'd like to make some room on my drive, and to uninstall Visual Studio 2010.
I don't use it anymore because I have the 2012, and I'd obviously like to keep using 2012, that is, is it safe to completely delete an older version of VS?
Will my 2012 continue to work straight after this uninstall?
From the docs
If you uninstall a version of Visual Studio on a computer that has
more than one version installed, the file associations for Visual
Studio are removed for all versions. You can remap these file
associations by using the Restore File Associations button on the
Environment, General page of the Options dialog box
Other than this maybe nothing changes, but its for you to find out. Of all the softwares Im generally happy with the install/uninstall system of VS, because of its predictability and documentation.

How to disable Style Cop visual studio extension?

How to disable the Style Cop visual studio extension? It's not listed in Tools / Extensions or in Tools / Add-in manager
I had the same issue: I uninstalled it using Add/Remove programs and got the expected error, when I opened Visual Studio next time. Still after hiding this error message, the StyleCop entries remained in my context menus.
After some research, I found a solution to remove all remains by running devenv.exe /setup on the command prompt. You must run the console elevated and you might have to switch to the C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE folder (or similar; depending on your system) in order to run the command.
Remember to remove the assotiated Code Cleanup profile if you are using ReSharper.
Source: http://stylecop.codeplex.com/discussions/257772
You can't, StyleCop deliberately hides itself from the uninstall menu in Visual Studio.
You can uninstall it in Add/Remove programs. You might get an error the next time you open Visual Studio but it will be gone after that.
why it happens is : mostly because you uninstalled the style-cop while visual studio was open
how to fix it
remove the registry keys
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\InstalledProducts\StyleCop
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\Packages{629EB7CC-69C2-43AC-9BC9-482B0F810C4E}
OR
reinstall & then uninstall (make sure your visual studio is closed during this process)
if you are using resharper
you would need to reset the Code Cleanup Profile to factory defualt to get rid of style-cop completely.
I had the same issue. I have already uninstalled it from Visual Studio by ReSharper Extension Manager and it there was under the right click menu still when I click any projects on Solution Explorer.
This way will solve the problem:
Steps:
Remove the StyleCop by Add/Remove Programs on control panel
If you have already uninstalled the StyleCop, install once again by ReSharper extension manager.(There will be many error at the first opening Visual Studio after the styleCop uninstall process. don't worry about it, press enter all)
Then Remove it by Resharper extension manager again.
I had the VS15 StyleCop plug-in installed and later added the ReSharper extension on top.
I removed the extension from ReSharper, then uninstalled StyleCop via Control Panel Add/Remove Programs and then let CCleaner run with registry clean-up.
The StyleCop entries have disappeared from the menus and the billions of squiggly lines have as well.
The easiest way is to install "StyleCop" extension from Visual Studio Marketplace. Which also can be found from the link :
https://marketplace.visualstudio.com/items?itemName=ChrisDahlberg.StyleCop
Now right click your project and click on "StyleCop Settings", there you you can disable or customize the rules.

Visual Studio built MSI no longer showing unistall/remove option from Add Remove Programs

This MSI installer I created from Visual Studio used to work perfectly but now something has changed and when I install it, and then go to uninstall from Windows Add/Remove Programs I see no option to remove.
It looks like:
http://awesomescreenshot.com/09b9gn5b4
No remove button, so I've been using msicuu.exe to force uninstall.
But really I want to get to the bottom of why this isn't working and get the uninstall option back in there.
Built using Visual Studio 2010 with TargetPlatform x64, .Net 4.0 on my Windows XP 32bit dev machine. Installed on Windows Server 2003 x64. Used to work fine, for some reason no longer.
Check that ARPNOREMOVE is not set in your installation package. Setting this property prevents Remove functionality in Add/Remove Programs Control Panel.

Resources