This documentation is archived and is not being maintained.

IVsShell.IsPackageInstalled Method

Determines whether a VSPackage identified by guidPackage is installed and registered with the system.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int IsPackageInstalled (
	[InAttribute] ref Guid guidPackage,
	out int pfInstalled
int IsPackageInstalled (
	/** @attribute InAttribute() */ /** @ref */ Guid guidPackage, 
	/** @attribute OutAttribute() */ /** @ref */ int pfInstalled
JScript does not support passing value-type arguments by reference.



[in] Unique identifier of the VSPackage.


[out, retval] true if the VSPackage is installed in the registry.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsShell::IsPackageInstalled(
   [in] REFGUID guidPackage,
   [out, retval] BOOL *pfInstalled

This method can be used to achieve advanced interactions between multiple VSPackages to determine whether they are loaded. It is recommended that you query for services that other VSPackages proffer.