Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio - Extension installation "Cannot find setup engine instance."

I'm trying to install the Qt add-in for Visual Studio 2019 Preview (Community), but the add-in is causing an error during installation.

First I was trying it with Visual Studio 2017 (Community), but was having difficulties, so I reinstalled VS17 twice. Finally, I uninstalled that, and installed Visual Studio 2019 Community Preview (which this particular extension is also supported for), and am still having issues.

I installed it through the built-in Visual Studio extension service.

I'm new to Visual Studio, normally I use QtCreator, but was wanting to debug my project with Visual Studio's superior debugging tools. How do I go about fixing this problem?

1/25/2019 8:02:28 PM - Beginning to install extension to Microsoft Visual Studio Community 2017...
1/25/2019 8:02:28 PM - Found setup instance 883a9c0e but not in launchable state.
1/25/2019 8:02:28 PM - Install Error : System.InvalidOperationException: Cannot find setup engine instance.
   at Microsoft.VisualStudio.ExtensionManager.SetupEngineUtility.GetCurrentSetupInstance(IEngineHost engineHost)
   at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.CreateEngine(IEngineHost engineHost, IServiceProvider serviceProvider, InstallFlags installFlags)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)

Edit: After yet another uninstall and reinstall of everything, it suddenly worked. Yay? I have no idea what was different this time around.

like image 772
Jamin Grey Avatar asked Jan 26 '19 20:01

Jamin Grey


People also ask

Why is Visual Studio installer not installing?

Deleting the Visual Studio Installer files and then rerunning the bootstrapper solves some update failures. Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata. Close the Visual Studio Installer. Delete the Visual Studio Installer installation directory.

How do I fix Visual Studio Installer has stopped working?

Please remove the folder: C:\Program Files (x86)\Microsoft Visual Studio\Installer. Then, re-download the bootstrapper file from the following Microsoft Site and run it as administrator.


2 Answers

I was experiencing this issue when I was trying to port a Visual Studio Extension forward from 2017 to 2019.

First I updated the Manifest file as appropriate to support Visual Studio 2019.

Then, once I hit the error 'Cannot find setup engine instance', I had a look in the 'Visual Studio Installer'.

The final step turned out to be adding the 'Visual Studio extension development' workload, which was initially not installed.

Visual Studio Installer

like image 193
Michael Murphy Avatar answered Sep 28 '22 14:09

Michael Murphy


I just updated visual studio 2019 and signed in. Afterwards, the issue was fixed and I could easily install extensions.

like image 37
Shah Aadil Avatar answered Sep 28 '22 14:09

Shah Aadil