Skip to main content

ComponentInfo Class

Provides access to information about a component within the context of an installation session.

Methods​

MethodDescription
GetCost(installState)Gets disk space per drive required to install a component.

Properties​

PropertyDescription
CurrentStateGets the current install state of the designated Component.
NameGets the name of the component (primary key in the Component table).
RequestStateGets or sets the action state of the designated Component.

WixToolset.Dtf.WindowsInstaller.dll version 6.0.0+8c7432e50072e009353ea5f2c956ccf453476f71

GetCost(installState) Method​

Gets disk space per drive required to install a component.

Declaration​

public IList<WixToolset.Dtf.WindowsInstaller.InstallCost> GetCost(
InstallState installState
)

Parameters​

ParameterTypeDescription
installStateInstallStateRequested component state

Return value​

IList<WixToolset.Dtf.WindowsInstaller.InstallCost> A list of InstallCost structures, specifying the cost for each drive for the component

Remarks​

Win32 MSI API: MsiEnumComponentCosts

CurrentState Property​

Gets the current install state of the designated Component.

Declaration​

public InstallState CurrentState { get; set; } 

Remarks​

Win32 MSI API: MsiGetComponentState

Exceptions​

ExceptionDescription
T:WixToolset.Dtf.WindowsInstaller.InvalidHandleExceptionthe Session handle is invalid
T:System.ArgumentExceptionan unknown Component was requested

Name Property​

Gets the name of the component (primary key in the Component table).

Declaration​

public string Name { get; set; } 

RequestState Property​

Gets or sets the action state of the designated Component.

Declaration​

public InstallState RequestState { get; set; } 

Remarks​

Win32 MSI APIs: MsiGetComponentState , MsiSetComponentState

Exceptions​

ExceptionDescription
T:WixToolset.Dtf.WindowsInstaller.InvalidHandleExceptionthe Session handle is invalid
T:System.ArgumentExceptionan unknown Component was requested
T:WixToolset.Dtf.WindowsInstaller.InstallCanceledExceptionthe user exited the installation