ProvideAssembly Method (assemblyName, appContext, installMode, isWin32Assembly)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation ProvideAssembly Method (assemblyName, appContext, installMode, isWin32Assembly)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerProvideAssembly(String, String, InstallMode, Boolean)
Gets the full path to a Windows Installer component containing an assembly. This method prompts for a source and increments the usage count for the feature.
Declaration Syntax
C# Visual Basic Visual C++
public static string ProvideAssembly(
	string assemblyName,
	string appContext,
	InstallMode installMode,
	bool isWin32Assembly
)
Public Shared Function ProvideAssembly ( 
	assemblyName As String,
	appContext As String,
	installMode As InstallMode,
	isWin32Assembly As Boolean
) As String
public:
static String^ ProvideAssembly(
	String^ assemblyName, 
	String^ appContext, 
	InstallMode installMode, 
	bool isWin32Assembly
)
Parameters
assemblyName (String)
Assembly name
appContext (String)
Set to null for global assemblies. For private assemblies, set to the full path of the application configuration file (.cfg file) or executable file (.exe) of the application to which the assembly has been made private.
installMode (InstallMode)
Installation mode; this can also include bits from ReinstallModes
isWin32Assembly (Boolean)
True if this is a Win32 assembly, false if it is a .NET assembly
Return Value
String
Path to the assembly
Remarks

Win32 MSI API: MsiProvideAssembly

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