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.

Can't uninstall extension from Visual Studio 2017 #1393

Open
@jcansdale

Description

@jcansdale
  • GitHub Extension for Visual Studio version: 2.2.0.10
  • Visual Studio version: 15.6.85+g13c9ab559b

What happened

  1. Clicked on Revert to revert the extension to 2.2.0.10:
    image
  2. Closed Visual Studio
  3. Clicked on Modify
  4. VSIX Installer dialog shows Modifications Complete
  5. Relaunched Visual Studio
  6. Clicked on Uninstall to remove the extension:
    image
  7. Closed Visual Studio
  8. Clicked on Modify
  9. Uninstall dialog shows Modifications Failed
    image
    Here is the log:
    VSIXInstaller_539b821d-57ec-4c11-be13-f077e7c14721.log

Here is some pertinent info from the log:

15/12/2017 10:41:44 - Microsoft VSIX Installer
15/12/2017 10:41:44 - -------------------------------------------
15/12/2017 10:41:44 - vsixinstaller.exe version:
15/12/2017 10:41:44 - 15.6.85+g13c9ab559b
15/12/2017 10:41:44 - -------------------------------------------

15/12/2017 10:41:47 - Initializing Uninstall...
15/12/2017 10:41:47 - Extension Details...
15/12/2017 10:41:47 - 	Identifier         : c3d3dc68-c977-411f-b3e8-03b0dccf7dfc
15/12/2017 10:41:47 - 	Name               : GitHub Extension for Visual Studio
15/12/2017 10:41:47 - 	Author             : GitHub, Inc
15/12/2017 10:41:47 - 	Version            : 2.2.0.10
15/12/2017 10:41:47 - 	Description        : A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
15/12/2017 10:41:47 - 	Locale             : en-US
15/12/2017 10:41:47 - 	MoreInfoURL        : https://visualstudio.github.com/
15/12/2017 10:41:47 - 	InstalledByMSI     : False
15/12/2017 10:41:47 - 	SupportedFrameworkVersionRange : [4.5,)

15/12/2017 10:41:47 - 
15/12/2017 10:42:40 - The following target products have been selected...
15/12/2017 10:42:40 - 	Microsoft Visual Studio Team Explorer 2017
15/12/2017 10:42:40 - 

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)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.UninstallInternal(IInstalledExtension extension, Boolean forceDelete, Version targetedVSVersion, Boolean downgrade)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.Uninstall(IInstalledExtension extension, Version targetedVSVersion)
   at VSIXInstaller.InstallProgressPage.UninstallVsix(String vsixId, SupportedVSSKU targetSku, IProgress`1 progress)

Attempt to resolve

I have 3 versions installed, so I'm not sure which directory use use:

cd c:\programdata\Microsoft\VisualStudio\Packages\_Instances\
dir

15/12/2017  10:25    <DIR>          92b5e4e1
05/12/2017  20:57    <DIR>          a23816c9
15/12/2017  10:22    <DIR>          c6ffbe0c

Will try the following from: #1206 (comment)

This fix is actually pretty painful (especially if you have more than one version installed) and not something we'd want to give our users!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Repro

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions