GetComponentState Method (component)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetComponentState Method (component)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerProductInstallationGetComponentState(String)
Gets the installed state for a product component.
Declaration Syntax
C# Visual Basic Visual C++ F#
public InstallState GetComponentState(
	string component
)
Public Function GetComponentState ( 
	component As String
) As InstallState
public:
InstallState GetComponentState(
	String^ component
)
member GetComponentState : 
        component : string -> InstallState 
Parameters
component (String)
The component being queried; GUID of the component as found in the ComponentId column of the Component table.
Return Value
InstallState
Installation state of the component for the product instance: either Local or Source.
Remarks

Win32 MSI API: MsiQueryComponentState

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)