Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

So you're trying to upgrade/uninstall and it's failing #1394

Open
@jcansdale

Description

@jcansdale

This is the master issue for installer related issues

  • VSIX Installer issues generally present like this:

image

Things to try

  1. 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)

image

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.

  1. 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.

  1. 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.

Issues with short log

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)
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)
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)
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)
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)
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)
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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions