I am writing an extension for Visual Studio 2015. I had a number of test extensions that I'd try directly, other than in the experimental instance. In fact, a couple of these versions were good enough for my team members to try, which is why I gave them the vsix file each time and had them install it with that.
Problem is that I can't get these to uninstall. I'm not doing anything strange. In fact, most of it is just for a couple of t4 templates. When I run an experimental instance, I keep seeing an old version show up rather than the latest.
I've reset the experimental instance numerous times using :
C:\Program Files (x86)\Microsoft Visual Studio\14.0\VSSDK\VisualStudioIntegration\Tools\Bin>CreateExpInstance /Reset /VSInstance=14.0 /RootSuffix=Exp
But the old version is still in there. If I try to uninstall, it's still in there showing as disabled. If I close the experimental instance and reopen it, it's back. Even after resetting the experimental instance.
So I tried going into the folder with the extensions and deleting all of the ones that have my tests. When I reopened visual studio and clicked on Extensions, it just gave me an error, so I undeleted the folders.
I tried using
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>VSIXInstaller /u:
with the key for my test. It says it's uninstalling but it doesn't remove the one that's giving me the problem. It does remove the latest one though.
I started checking the registry, and I'm finding a section with "pending deletions" with all the tests I've created. But nothing I do seems to get it to actually process them.
Normally I run visual studio as administrator. I enabled the flag on the shortcut, because some of the projects I work on require it and I don't want to have to remember to use 'run as'. But it doesn't seem to matter. If I run just without it, those 'pending deletions' don't seem to process either.
I'm going to poke around some more but maybe someone else has a solution for this?