So you're trying to upgrade/uninstall and it's failing #1394
Description
This is the master issue for installer related issues
- VSIX Installer issues generally present like this:
Things to try
- Uninstall from command prompt
There have been issues with Visual Studio's Revert
functionality which can leave the installer in an inconsistent state (preventing Uninstall
from working correctly)
Something like the following will appear at the end of your (un)install log:
18/12/2017 10:16:28 - System.InvalidOperationException: A value for 'Component' needs to be specified in the catalog.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineUnInstall(IInstalledExtension extension, Boolean downgrade)
In order to uninstall completely, you will first need to install a new version of the GitHub Extension for Visual Studio before uninstalling using the command prompt (instead of Revert
).
-
You can download and install the latest version from here:
https://visualstudio.github.com/ -
Open
Developer Command Prompt for VS 2017
from the start menu and execute the following:
vsixinstaller /uninstall:c3d3dc68-c977-411f-b3e8-03b0dccf7dfc
The extension should now be completely uninstalled.
- Manual uninstall
If the first approach doesn't work, you might need to try a manual uninstall (removing the extension and getting Visual Studio to refresh).
If you're running multiple flavors of VS 2017, then you probably have one or more of the following directories on your system:
C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\Common7\IDE\Extensions
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions
Shutdown all instances of VS and try the following:
Go to each VS 2017 directory (like the ones above) and do a search for GitHub.VisualStudio.dll. All the directories that contain a file with that name are installations of GHfVS. Delete the directories that have that file (they have random names like 0sfcmtxg.f4t).
Once you've removed all the directories, open a developer command prompt as administrator for each of the VS installations (right click on the developer command prompt short and click Run as administrator, and run:
devenv /setup
This command will take a while to run. After you've done this to all your VS 2017 installations, run VS so that the catalog is rebuilt. If things go well, the extension will no longer be installed and you should not have errors in the Team Explorer area. After that, you should have no problems installing the extension from the Extensions and Updates menu in VS.
- Other approaches
If the above steps don't work, please comment on this issue and attach your install log. We will work with you to get it resolved.
Issues with install log summary
Here is a list of issues with the pertinent lines from there install log.
-
Can't uninstall extension from Visual Studio 2017 Can't uninstall extension from Visual Studio 2017 #1393
15/12/2017 10:42:42 - Embedded catalog does not contain a component. -
Extension 2.2.0.11 fails to instal on Visual Studio 15.2.16430.4 Extension 2.2.0.11 fails to instal on Visual Studio 15.2.16430.4 #987
10/05/2017 22:05:24 - Install Error : System.InvalidOperationException: The VSIX's catalog does not include a 'Component' which is required for install/uninstall. -
Can't uninstall VSIX from VS 2017 RC Can't uninstall VSIX from VS 2017 RC #864
16/02/2017 09:40:04 - Uninstalling 'GitHub Extension for Visual Studio', version 2.2.0.8. -
Update issues - A value for 'Component' needs to be specified in the catalog Update issues - A value for 'Component' needs to be specified in the catalog #1295
2017-11-06 15:22:06 - Unable to find component in product catalog with this ID: Component.GitHub.VisualStudio,version=2.3.1.30 -
2.3.2.32 fails to install to VS 2017 with "A value for 'Component' needs to be specified in the catalog." 2.3.2.32 fails to install to VS 2017 with "A value for 'Component' needs to be specified in the catalog." #1213
1.9.2017 г. 10:00:52 - Unable to find component in product catalog with this ID: Component.GitHub.VisualStudio,version=2.3.1.30 -
update from version 2.2.0.10 to 2.2.0.11 failed (OS Version '10.0.15063.0' not supported?) (Solved! see Post Extension 2.2.0.11 fails to instal on Visual Studio 15.2.16430.4 #987) update from version 2.2.0.10 to 2.2.0.11 failed (OS Version '10.0.15063.0' not supported?) (Solved! see Post #987) #1132
10.08.2017 17:22:47 - Package 'GitHub.VisualStudio,version=2.2.0.11' failed to install. System.IO.IOException: The file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\dphzvrzq.gnr\Akavache.dll' already exists. -
Cannot Uninstall in order to update Cannot Uninstall in order to update #806
27/01/2017 13:08:09 - Désinstallation de 'GitHub Extension for Visual Studio', version 2.1.1.4.
Issues with short log
- Can't uninstall extension from Visual Studio 2017 Can't uninstall extension from Visual Studio 2017 #1393
15/12/2017 10:42:41 - Uninstalling 'GitHub Extension for Visual Studio', version 2.2.0.10.
15/12/2017 10:42:41 - pkgCatalogPath is 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\TEAMEXPLORER\COMMON7\IDE\EXTENSIONS\WYHGZAQI.MH1\catalog.json'.
15/12/2017 10:42:42 - vsPkg.Version is '2.2.0.10'. extension.Header.Version is '2.2.0.10'
15/12/2017 10:42:42 - Embedded catalog does not contain a component.
15/12/2017 10:42:42 - System.InvalidOperationException: A value for 'Component' needs to be specified in the catalog.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineUnInstall(IInstalledExtension extension, Boolean downgrade)
- Extension 2.2.0.11 fails to instal on Visual Studio 15.2.16430.4 Extension 2.2.0.11 fails to instal on Visual Studio 15.2.16430.4 #987
10/05/2017 22:04:22 - Beginning to install extension to Microsoft Visual Studio Enterprise 2017...
10/05/2017 22:04:22 - Upgrading 'GitHub Extension for Visual Studio', version 2.2.0.10 to version 2.2.0.11.
...
10/05/2017 22:05:24 - Install Error : System.InvalidOperationException: The VSIX's catalog does not include a 'Component' which is required for install/uninstall.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineUnInstall(IInstalledExtension extension)
- Can't uninstall VSIX from VS 2017 RC Can't uninstall VSIX from VS 2017 RC #864
16/02/2017 09:40:04 - Uninstalling 'GitHub Extension for Visual Studio', version 2.2.0.8.
16/02/2017 09:40:07 - System.InvalidOperationException: Uninstall of GitHub Extension for Visual Studio failed. To uninstall this extension please uninstall all of the following components:
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineUnInstall(IInstalledExtension extension)
- Update issues - A value for 'Component' needs to be specified in the catalog Update issues - A value for 'Component' needs to be specified in the catalog #1295
2017-11-06 15:22:06 - Unable to find component in product catalog with this ID: Component.GitHub.VisualStudio,version=2.3.1.30
2017-11-06 15:22:06 - System.InvalidOperationException: A value for 'Component' needs to be specified in the catalog.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineUnInstall(IInstalledExtension extension, Boolean downgrade)
- 2.3.2.32 fails to install to VS 2017 with "A value for 'Component' needs to be specified in the catalog." 2.3.2.32 fails to install to VS 2017 with "A value for 'Component' needs to be specified in the catalog." #1213
1.9.2017 г. 10:00:08 - Upgrading 'GitHub Extension for Visual Studio', version 2.3.1.30 to version 2.3.2.32.
...
1.9.2017 г. 10:00:52 - Unable to find component in product catalog with this ID: Component.GitHub.VisualStudio,version=2.3.1.30
1.9.2017 г. 10:00:52 - Install Error : System.InvalidOperationException: A value for 'Component' needs to be specified in the catalog.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineUnInstall(IInstalledExtension extension, Boolean downgrade)
- update from version 2.2.0.10 to 2.2.0.11 failed (OS Version '10.0.15063.0' not supported?) (Solved! see Post Extension 2.2.0.11 fails to instal on Visual Studio 15.2.16430.4 #987) update from version 2.2.0.10 to 2.2.0.11 failed (OS Version '10.0.15063.0' not supported?) (Solved! see Post #987) #1132
10.08.2017 17:22:47 - Package 'GitHub.VisualStudio,version=2.2.0.11' failed to install. System.IO.IOException: The file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\dphzvrzq.gnr\Akavache.dll' already exists.
bei Microsoft.VisualStudio.Setup.Installer.VsixInstaller.InstallCore(String localPath, String installDir, InstallablePackage pkg)
- Cannot Uninstall in order to update Cannot Uninstall in order to update #806
27/01/2017 13:08:09 - Désinstallation de 'GitHub Extension for Visual Studio', version 2.1.1.4.
27/01/2017 13:08:09 - System.IO.FileNotFoundException: Unable to find the specified file.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.GetCurrentSetupInstance()