RegistrationHelper::InstallAssembly Method (String^, String^%, String^, String^%, InstallationFlags)

 

Installs the named assembly in a COM+ application.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public:
void InstallAssembly(
	String^ assembly,
	String^% application,
	String^ partition,
	String^% tlb,
	InstallationFlags installFlags
)

Parameters

assembly
Type: System::String^

The file name of the assembly to install.

application
Type: System::String^%

The name of the COM+ application to install into. This parameter can be null. If the parameter is null and the assembly contains a ApplicationNameAttribute, then the attribute is used. Otherwise, the name of the application is generated based on the name of the assembly, then is returned.

partition
Type: System::String^

The name of the partition. This parameter can be null.

tlb
Type: System::String^%

The name of the output Type Library Exporter (Tlbexp.exe) file, or a string that contains null if the registration helper is expected to generate the name. The actual name used is placed in the parameter on call completion.

installFlags
Type: System.EnterpriseServices::InstallationFlags

A bitwise combination of the InstallationFlags values.

Exception Condition
RegistrationException

The input assembly does not have a strong name.

InstallAssembly performs the following steps: registration, generation of a type library, registration of the type library, installation of the type library under the specified application, and configuration of the components contained in the type library.

This method requires the caller to have administrative privileges on the local computer.

SecurityPermission

for the ability to access unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode

RegistryPermission

for the ability to access the registry. Associated enumeration: PermissionState::Unrestricted

.NET Framework
Available since 1.1
Return to top
Show: