ProvideComponent Method (product, feature, component, installMode)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation ProvideComponent Method (product, feature, component, installMode)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerProvideComponent(String, String, String, InstallMode)
Gets the full component path, performing any necessary installation. This method prompts for source if necessary and increments the usage count for the feature.
Declaration Syntax
C# Visual Basic Visual C++
public static string ProvideComponent(
	string product,
	string feature,
	string component,
	InstallMode installMode
)
Public Shared Function ProvideComponent ( 
	product As String,
	feature As String,
	component As String,
	installMode As InstallMode
) As String
public:
static String^ ProvideComponent(
	String^ product, 
	String^ feature, 
	String^ component, 
	InstallMode installMode
)
Parameters
product (String)
Product code for the product that contains the feature with the necessary component
feature (String)
Feature ID of the feature with the necessary component
component (String)
Component code of the necessary component
installMode (InstallMode)
Installation mode; this can also include bits from ReinstallModes
Return Value
String
Path to the component
Remarks

Win32 MSI API: MsiProvideComponent

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