Patrick from NDepend team
Patrick from NDepend team

Reputation: 13842

Installing VS Package from code

Is there an API that can be used from .NET code to install/uninstall a Visual Studio Package, for a specific VS version?

The API would take as inputs:


Similarly I'd need also an API that tells me if a specific VS Package is installed or not. the The API would take as inputs:

and would return a boolean: Installed or not

Upvotes: 0

Views: 272

Answers (1)

Sergey Vlasov
Sergey Vlasov

Reputation: 27880

VSIXInstaller.exe can install or uninstall a vsix for for a specific VS version and edition. To check package installation you can use Microsoft.VisualStudio.Shell.Interop.IVsShell.IsPackageInstalled from VS automation engine.

Upvotes: 1

Related Questions